Class: VkApiSimple::Photos
- Inherits:
-
Object
- Object
- VkApiSimple::Photos
- Includes:
- Delete, Edit, Get, GetMarketUploadServer, GetUploadServer, Move, Save, SaveMarketPhoto, UploadImage
- Defined in:
- lib/vk_api_simple/photos.rb,
lib/vk_api_simple/photos/get.rb,
lib/vk_api_simple/photos/edit.rb,
lib/vk_api_simple/photos/move.rb,
lib/vk_api_simple/photos/save.rb,
lib/vk_api_simple/photos/delete.rb,
lib/vk_api_simple/photos/upload_image.rb,
lib/vk_api_simple/photos/get_upload_server.rb,
lib/vk_api_simple/photos/save_market_photo.rb,
lib/vk_api_simple/photos/get_market_upload_server.rb
Overview
Clients requests
Defined Under Namespace
Modules: Delete, Edit, Get, GetMarketUploadServer, GetUploadServer, Move, Save, SaveMarketPhoto, UploadImage
Constant Summary collapse
- BASE_URI =
'https://api.vk.com/method/photos.'.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 = {}) ⇒ Photos
constructor
A new instance of Photos.
Methods included from UploadImage
Methods included from SaveMarketPhoto
Methods included from Save
Methods included from Move
Methods included from GetUploadServer
Methods included from GetMarketUploadServer
Methods included from Get
Methods included from Edit
Methods included from Delete
Constructor Details
#initialize(args = {}) ⇒ Photos
Returns a new instance of Photos.
31 32 33 34 |
# File 'lib/vk_api_simple/photos.rb', line 31 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.
29 30 31 |
# File 'lib/vk_api_simple/photos.rb', line 29 def api_version @api_version end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
29 30 31 |
# File 'lib/vk_api_simple/photos.rb', line 29 def token @token end |