Module: Hotchoc::Client::API
- Included in:
- Hotchoc::Client
- Defined in:
- lib/hotchoc/client/api.rb
Instance Method Summary collapse
- #get_albums(opts = {}) ⇒ Object
- #get_pages(opts = {}) ⇒ Object
- #get_posts(opts = {}) ⇒ Object
- #get_topics(opts = {}) ⇒ Object
Instance Method Details
#get_albums(opts = {}) ⇒ Object
4 5 6 |
# File 'lib/hotchoc/client/api.rb', line 4 def get_albums(opts = {}) get('albums', opts).map { |album| Hotchoc::Album.new(album) } end |
#get_pages(opts = {}) ⇒ Object
8 9 10 |
# File 'lib/hotchoc/client/api.rb', line 8 def get_pages(opts = {}) get('pages', opts).map { |page| Hotchoc::Page.new(page) } end |