Class: VkApiSimple::Photos

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from UploadImage

#upload_image

Methods included from SaveMarketPhoto

#save_market_photo

Methods included from Save

#save

Methods included from Move

#move

Methods included from GetUploadServer

#get_upload_server

Methods included from GetMarketUploadServer

#get_market_upload_server

Methods included from Get

#get

Methods included from Edit

#edit

Methods included from Delete

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

#tokenObject (readonly)

Returns the value of attribute token.



29
30
31
# File 'lib/vk_api_simple/photos.rb', line 29

def token
  @token
end