Class: Yandex::Market::Client

Inherits:
Object
  • Object
show all
Includes:
Regions, Connection
Defined in:
lib/yandex/market/client/regions.rb,
lib/yandex/market/content/client.rb

Defined Under Namespace

Modules: Regions

Instance Method Summary collapse

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.



11
12
13
14
# File 'lib/yandex/market/content/client.rb', line 11

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