Class: Cashboard::Project

Inherits:
Base show all
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

#href, #id

Instance Method Summary collapse

Methods included from Behaviors::ListsLineItems

#custom_items, #line_items, #products, #tasks

Methods included from Behaviors::Toggleable

#toggle_status

Methods inherited from Base

authenticate, clear_authentication, create, #delete, #links, list, new_from_url, #to_xml, #update

Methods inherited from Struct

#initialize

Methods inherited from TypecastedOpenStruct

attr_typecast, element

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(options={})
  self.class.get_collection(
    self.links[:assigned_employees], Cashboard::ProjectAssignment, options
  )
end