Class: Jtv::Client

Inherits:
Object
  • Object
show all
Includes:
Channel, Defaults, Stream, User
Defined in:
lib/jtv/client.rb

Instance Attribute Summary

Attributes included from Defaults

#oauth_secret, #oauth_token

Instance Method Summary collapse

Methods included from Channel

#archives, #channel_show, #fans

Methods included from User

#user_show

Methods included from Stream

#featured, #search, #summary

Methods included from Defaults

#credentials

Constructor Details

#initialize(args = {}) ⇒ Client

Returns a new instance of Client.



16
17
18
19
20
# File 'lib/jtv/client.rb', line 16

def initialize args = {}
  args.each do |key, value|
    send "#{key}=", value
  end
end

Instance Method Details

#get(path, params = {}) ⇒ Object



22
23
24
# File 'lib/jtv/client.rb', line 22

def get path, params = {}
  get_json :get, path, params
end