Class: Forecasting::Models::Assignment
Instance Attribute Summary
Attributes inherited from Base
#attributes, #forecast_client
Instance Method Summary
collapse
#create, #delete, #fetch, get, #save, #type, #update
Methods inherited from Base
attributed, #initialize, modeled, #to_hash
Instance Method Details
#path ⇒ Object
17
18
19
|
# File 'lib/forecasting/models/assignment.rb', line 17
def path
@attributes['id'].nil? ? "assignments" : "assignments/#{@attributes['id']}"
end
|
#person ⇒ Object
25
26
27
|
# File 'lib/forecasting/models/assignment.rb', line 25
def person
forecast_client.person(id: person_id)
end
|
#placeholder ⇒ Object
29
30
31
|
# File 'lib/forecasting/models/assignment.rb', line 29
def placeholder
forecast_client.placeholder(id: placeholder_id)
end
|
#project ⇒ Object
21
22
23
|
# File 'lib/forecasting/models/assignment.rb', line 21
def project
forecast_client.project(id: project_id)
end
|