Class: Jtv::Client
- Inherits:
-
Object
- Object
- Jtv::Client
- Defined in:
- lib/jtv/client.rb
Instance Attribute Summary
Attributes included from Defaults
Instance Method Summary collapse
- #get(path, params = {}) ⇒ Object
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Channel
#archives, #channel_show, #fans
Methods included from User
Methods included from Stream
Methods included from Defaults
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 |