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

Public: Retrieves channels.

params - Hash of parameters to pass to the API

API Routes

GET /channels

See also: www.reamaze.com/api/get_channels

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

Public: Retrieve a specific channel.

slug - Channel slug

API Routes

GET /channels/{slug}

See also: www.reamaze.com/api/get_channel

Returns a Hash.



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

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