Class: Mite::Customer

Inherits:
Base
  • Object
show all
Includes:
ResourceWithActiveArchived
Defined in:
lib/mite/customer.rb

Instance Method Summary collapse

Methods included from ResourceWithActiveArchived

included

Methods inherited from Base

all, first, inherited, last

Instance Method Details

#projects(options = {}) ⇒ Object



9
10
11
# File 'lib/mite/customer.rb', line 9

def projects(options = {})
  Mite::Project.find(:all, :params => options.update(:customer_id => id))
end

#time_entries(options = {}) ⇒ Object



5
6
7
# File 'lib/mite/customer.rb', line 5

def time_entries(options = {})
  Mite::TimeEntry.find(:all, :params => options.update(:customer_id => id))
end