Class: MailRU::API::Photos
- Inherits:
-
Object
- Object
- MailRU::API::Photos
- Defined in:
- lib/mailru-api/photos.rb
Instance Method Summary collapse
- #create_album(params = {}) ⇒ Object
- #get(params = {}) ⇒ Object
- #get_albums(params = {}) ⇒ Object
-
#initialize(api) ⇒ Photos
constructor
A new instance of Photos.
- #upload(params = {}) ⇒ Object
Constructor Details
#initialize(api) ⇒ Photos
Returns a new instance of Photos.
6 7 8 |
# File 'lib/mailru-api/photos.rb', line 6 def initialize api @api = api end |
Instance Method Details
#create_album(params = {}) ⇒ Object
10 11 12 |
# File 'lib/mailru-api/photos.rb', line 10 def create_album params = {} GetRequest.new(@api, 'photos.createAlbum', params).get end |
#get(params = {}) ⇒ Object
14 15 16 |
# File 'lib/mailru-api/photos.rb', line 14 def get params = {} GetRequest.new(@api, 'photos.get', params).get end |
#get_albums(params = {}) ⇒ Object
18 19 20 |
# File 'lib/mailru-api/photos.rb', line 18 def get_albums params = {} GetRequest.new(@api, 'photos.getAlbums', params).get end |
#upload(params = {}) ⇒ Object
22 23 24 |
# File 'lib/mailru-api/photos.rb', line 22 def upload params = {} PostRequest.new(@api, 'photos.upload', params).post end |