Class: HabiticaClient::ApiBase
- Inherits:
-
Object
- Object
- HabiticaClient::ApiBase
- Defined in:
- lib/habitica_client/api_base.rb
Overview
The basis of all HabiticaClient endpoint objects.
All HabiticaClient endpoint objects need a reference to the http client so that we can make the API work using the dot syntax.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ ApiBase
constructor
A new instance of ApiBase.
Constructor Details
#initialize(client) ⇒ ApiBase
Returns a new instance of ApiBase.
11 12 13 |
# File 'lib/habitica_client/api_base.rb', line 11 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
9 10 11 |
# File 'lib/habitica_client/api_base.rb', line 9 def client @client end |