Class: HabiticaClient
- Inherits:
-
Object
- Object
- HabiticaClient
- Defined in:
- lib/habitica_client.rb,
lib/habitica_client/task.rb,
lib/habitica_client/user.rb,
lib/habitica_client/tasks.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, Task, Tasks, User
Constant Summary collapse
- VERSION =
'1.0.1'.freeze
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.
- #tasks ⇒ Object
- #user ⇒ Object
Constructor Details
#initialize(user_id, api_token) ⇒ HabiticaClient
Returns a new instance of HabiticaClient.
10 11 12 |
# File 'lib/habitica_client.rb', line 10 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.
8 9 10 |
# File 'lib/habitica_client.rb', line 8 def client @client end |