Class: Harvesting::Models::User
- Inherits:
-
HarvestRecord
- Object
- Base
- HarvestRecord
- Harvesting::Models::User
- Defined in:
- lib/harvesting/models/user.rb
Overview
An user record from your Harvest account.
For more information: help.getharvest.com/api-v2/users-api/users/users/
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from HarvestRecord
Methods inherited from Base
#create, #delete, #fetch, get, #initialize, #save, #to_hash, #update
Constructor Details
This class inherits a constructor from Harvesting::Models::Base
Instance Method Details
#name ⇒ Object
34 35 36 |
# File 'lib/harvesting/models/user.rb', line 34 def name @attributes['name'].nil? ? "#{first_name} #{last_name}" : @attributes['name'] end |
#path ⇒ Object
30 31 32 |
# File 'lib/harvesting/models/user.rb', line 30 def path @attributes['id'].nil? ? "users" : "users/#{@attributes['id']}" end |