Class: ReamazeAPI::Channel
- Defined in:
- lib/reamaze_api/channel.rb
Instance Method Summary collapse
-
#all(params = {}) ⇒ Object
Retrieves channels.
-
#find(slug) ⇒ Object
Retrieve a specific channel.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from ReamazeAPI::Resource
Instance Method Details
#all(params = {}) ⇒ Object
Retrieves channels.
14 15 16 |
# File 'lib/reamaze_api/channel.rb', line 14 def all(params = {}) paginate "/channels", :channels, params end |
#find(slug) ⇒ Object
Retrieve a specific channel.
29 30 31 |
# File 'lib/reamaze_api/channel.rb', line 29 def find(slug) get "/channels/#{slug}" end |