Class: Imgur::Client::Albums
- Inherits:
-
Cistern::Collection
- Object
- Cistern::Collection
- Imgur::Client::Albums
- Includes:
- Imgur::Collection, PagedCollection
- Defined in:
- lib/imgur/models/albums.rb
Instance Method Summary collapse
Methods included from Imgur::Collection
included, #model_request, #model_root
Methods included from PagedCollection
#==, #all, #collection_request, #collection_root, included, #last_page, #next_page, #previous_page
Instance Method Details
#get(id) ⇒ Object
13 14 15 |
# File 'lib/imgur/models/albums.rb', line 13 def get(id) connection.albums.new(connection.get_album(id).body["data"]) end |