Class: Yandex::Market::Configuration
- Inherits:
-
Object
- Object
- Yandex::Market::Configuration
- 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
-
#authorization_token ⇒ Object
Returns the value of attribute authorization_token.
-
#resource_url ⇒ Object
Returns the value of attribute resource_url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_token ⇒ Object
Returns the value of attribute authorization_token.
4 5 6 |
# File 'lib/yandex/market/content/configuration.rb', line 4 def @authorization_token end |
#resource_url ⇒ Object
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 |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/yandex/market/content/configuration.rb', line 4 def version @version end |