Class: VkApiSimple::Market
- Inherits:
-
Object
- Object
- VkApiSimple::Market
- Defined in:
- lib/vk_api_simple/market.rb,
lib/vk_api_simple/market/add.rb,
lib/vk_api_simple/market/edit.rb,
lib/vk_api_simple/market/delete.rb
Overview
Market requests
Defined Under Namespace
Constant Summary collapse
- BASE_URI =
'https://api.vk.com/method/market.'.freeze
- VK_API_VERSION =
'5.74'.freeze
Instance Attribute Summary collapse
-
#api_version ⇒ Object
readonly
Returns the value of attribute api_version.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Market
constructor
A new instance of Market.
Methods included from Edit
Methods included from Delete
Methods included from Add
Constructor Details
#initialize(args = {}) ⇒ Market
Returns a new instance of Market.
19 20 21 22 |
# File 'lib/vk_api_simple/market.rb', line 19 def initialize(args = {}) @token = args[:token] @api_version = args[:api_version] || VK_API_VERSION end |
Instance Attribute Details
#api_version ⇒ Object (readonly)
Returns the value of attribute api_version.
17 18 19 |
# File 'lib/vk_api_simple/market.rb', line 17 def api_version @api_version end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
17 18 19 |
# File 'lib/vk_api_simple/market.rb', line 17 def token @token end |