Method: Trumpet::User#channels

Defined in:
lib/trumpet/user.rb

#channels(options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/trumpet/user.rb', line 19

def channels(options={})
  options[:credentials] ||= @credentials
  channels = Trumpet::Request.get("/users/#{name}/channels", options)
  channels.map { |attributes| Channel.new(attributes) }
end