Class: HabiticaClient
- Inherits:
-
Object
- Object
- HabiticaClient
- Defined in:
- lib/habitica_client.rb,
lib/habitica_client/user.rb,
lib/habitica_client/client.rb,
lib/habitica_client/restful.rb,
lib/habitica_client/version.rb,
lib/habitica_client/api_base.rb
Defined Under Namespace
Classes: ApiBase, Client, Restful, User
Constant Summary collapse
- VERSION =
'0.0.7'
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(user_id, api_token) ⇒ HabiticaClient
constructor
A new instance of HabiticaClient.
- #user ⇒ Object
Constructor Details
#initialize(user_id, api_token) ⇒ HabiticaClient
Returns a new instance of HabiticaClient.
9 10 11 |
# File 'lib/habitica_client.rb', line 9 def initialize(user_id, api_token) self.client = Client.new(user_id, api_token) end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
7 8 9 |
# File 'lib/habitica_client.rb', line 7 def client @client end |