class BestBuy::Stores

Constants

STORES_API

Public Instance Methods

find(store_id) click to toggle source
# File lib/best_buy/stores.rb, line 9
def find(store_id)
  response = get_response("/#{store_id}.json", { apiKey: api_key })
  parsed_response = APIHelper.new.parse_response(response)

  model_class.new(parsed_response)
end

Protected Instance Methods

api_url() click to toggle source
# File lib/best_buy/stores.rb, line 26
def api_url
  STORES_API
end
collection_name() click to toggle source
# File lib/best_buy/stores.rb, line 22
def collection_name
  :stores
end
model_class() click to toggle source
# File lib/best_buy/stores.rb, line 18
def model_class
  Store
end