Class: Namba::Client
- Inherits:
-
Object
- Object
- Namba::Client
- Extended by:
- Config
- Includes:
- APIMethods
- Defined in:
- lib/namba/client.rb
Constant Summary
Constants included from Config
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Methods included from Config
Methods included from APIMethods
#get_events, #get_friends_list, #get_last_mail, #get_new_mail_count, #get_user_info, #set_status
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/namba/client.rb', line 10 def initialize opts = Namba::Config. Config::VALID_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, opts[key]) end end |