Class: Harvest::API::Base
- Inherits:
-
Object
- Object
- Harvest::API::Base
- Defined in:
- lib/harvest/api/base.rb
Direct Known Subclasses
Account, Clients, Contacts, ExpenseCategories, Expenses, Projects, Reports, TaskAssignments, Tasks, Time, UserAssignments, Users
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credentials) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(credentials) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/harvest/api/base.rb', line 6 def initialize(credentials) @credentials = credentials end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
4 5 6 |
# File 'lib/harvest/api/base.rb', line 4 def credentials @credentials end |
Class Method Details
.api_model(klass) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/harvest/api/base.rb', line 11 def api_model(klass) class_eval <<-END def api_model #{klass} end END end |