Class: VkApiSimple::Market

Inherits:
Object
  • Object
show all
Includes:
Add, Delete, Edit
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

Modules: Add, Delete, Edit

Constant Summary collapse

BASE_URI =
'https://api.vk.com/method/market.'.freeze
VK_API_VERSION =
'5.74'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Edit

#edit

Methods included from Delete

#delete

Methods included from Add

#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_versionObject (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

#tokenObject (readonly)

Returns the value of attribute token.



17
18
19
# File 'lib/vk_api_simple/market.rb', line 17

def token
  @token
end