Class: Rubill::CustomerContact
- Defined in:
- lib/rubill/entities/customer_contact.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#[], #[]=, active, all, create, delete, #delete, find, find_by_name, #id, #initialize, #save, update, where
Constructor Details
This class inherits a constructor from Rubill::Base
Class Method Details
.active_by_customer(customer_id) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/rubill/entities/customer_contact.rb', line 7 def self.active_by_customer(customer_id) where( [ Query::Filter.new("customerId", "=", customer_id), Query::Filter.new("isActive", "=", "1"), ] ) end |
.find_by_customer(customer_id) ⇒ Object
3 4 5 |
# File 'lib/rubill/entities/customer_contact.rb', line 3 def self.find_by_customer(customer_id) where([Query::Filter.new("customerId", "=", customer_id)]) end |