Class: ReamazeAPI::Channel

Inherits:
Resource show all
Defined in:
lib/reamaze_api/channel.rb

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from ReamazeAPI::Resource

Instance Method Details

#all(params = {}) ⇒ Object

Retrieves channels.

Parameters:

Returns:

  • a Hash.



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.

Parameters:

Returns:

  • a Hash.



29
30
31
# File 'lib/reamaze_api/channel.rb', line 29

def find(slug)
  get "/channels/#{slug}"
end