Class: Yandex::Market::Client

Inherits:
Object
  • Object
show all
Includes:
Models, Offers, Regions, Search, Connection
Defined in:
lib/yandex/market/client/models.rb,
lib/yandex/market/client/offers.rb,
lib/yandex/market/client/search.rb,
lib/yandex/market/client/regions.rb,
lib/yandex/market/content/client.rb

Defined Under Namespace

Modules: Models, Offers, Regions, Search

Instance Method Summary collapse

Methods included from Search

#search

Methods included from Models

#offers

Methods included from Offers

#offer

Methods included from Regions

#regions, #regions_children, #suggest

Methods included from Connection

#call, #connection, #get

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



19
20
21
22
# File 'lib/yandex/market/content/client.rb', line 19

def initialize(options = {})
  # TODO refactoring
  Content.configuration.authorization_token = options[:token] if options[:token]
end