Class: Yandex::Market::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/yandex/market/content/configuration.rb

Constant Summary collapse

DEFAULT_CONF =
{
  version: 'v2.1.0',
  resource_url: 'https://api.content.market.yandex.ru/'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @version = DEFAULT_CONF[:version]
  @resource_url = DEFAULT_CONF[:resource_url]
end

Instance Attribute Details

#authorization_tokenObject

Returns the value of attribute authorization_token.



4
5
6
# File 'lib/yandex/market/content/configuration.rb', line 4

def authorization_token
  @authorization_token
end

#resource_urlObject

Returns the value of attribute resource_url.



4
5
6
# File 'lib/yandex/market/content/configuration.rb', line 4

def resource_url
  @resource_url
end

#versionObject

Returns the value of attribute version.



4
5
6
# File 'lib/yandex/market/content/configuration.rb', line 4

def version
  @version
end