Sha256: 4b794ec361252a65a64f1a30520d2c1d32cb52e8ace8b7d0f0436136b229ffb2

Contents?: true

Size: 315 Bytes

Versions: 10

Compression:

Stored size: 315 Bytes

Contents

class Mite::Customer < Mite::Base
  
  include Mite::ResourceWithActiveArchived
  
  def time_entries(options = {})
    Mite::TimeEntry.find(:all, :params => options.update(:customer_id => id))
  end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mite-rb-0.4.4 lib/mite/customer.rb
mite-rb-0.4.3 lib/mite/customer.rb
mite-rb-0.4.2 lib/mite/customer.rb
mite-rb-0.4.1 lib/mite/customer.rb
mite-rb-0.4.0 lib/mite/customer.rb
mite-rb-0.3.0 lib/mite/customer.rb
mite-rb-0.2.4 lib/mite/customer.rb
mite-rb-0.2.3 lib/mite/customer.rb
mite-rb-0.2.2 lib/mite/customer.rb
mite-rb-0.2.1 lib/mite/customer.rb