Class: Mite::Customer

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

Instance Method Summary collapse

Methods inherited from Base

all, first, inherited, last, undo_destroy, #undo_destroy

Instance Method Details

#projects(options = {}) ⇒ Object



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

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

#time_entries(options = {}) ⇒ Object



2
3
4
# File 'lib/mite/customer.rb', line 2

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