Class: Cashboard::Project
- Inherits:
-
Base
- Object
- OpenStruct
- TypecastedOpenStruct
- Struct
- Base
- Cashboard::Project
- Includes:
- Behaviors::ListsLineItems, Behaviors::Toggleable
- Defined in:
- lib/cashboard/project.rb
Constant Summary collapse
- BILLING_CODES =
{ :non_billable => 0, :task_rate => 1, :employee_rate => 2 }
- CLIENT_VIEW_TIME_CODES =
{ :show_when_invoiced => 0, :show_when_marked_billable => 1, :never => 2 }
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#employee_project_assignments(options = {}) ⇒ Object
Returns all employee ProjectAssignments.
Methods included from Behaviors::ListsLineItems
#custom_items, #line_items, #products, #tasks
Methods included from Behaviors::Toggleable
Methods inherited from Base
authenticate, clear_authentication, create, #delete, #links, list, new_from_url, #to_xml, #update
Methods inherited from Struct
Methods inherited from TypecastedOpenStruct
Constructor Details
This class inherits a constructor from Cashboard::Struct
Instance Method Details
#employee_project_assignments(options = {}) ⇒ Object
Returns all employee ProjectAssignments
31 32 33 34 35 |
# File 'lib/cashboard/project.rb', line 31 def employee_project_assignments(={}) self.class.get_collection( self.links[:assigned_employees], Cashboard::ProjectAssignment, ) end |