Class: Rubill::CustomerContact
- Inherits:
-
Base
- Object
- Base
- Rubill::CustomerContact
show all
- Defined in:
- lib/rubill/customer_contact.rb
Instance Attribute Summary
Attributes inherited from Base
#remote_record
Class Method Summary
collapse
Methods inherited from Base
#[], #[]=, active, all, create, delete, #delete, find, #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/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/customer_contact.rb', line 3
def self.find_by_customer(customer_id)
where([Query::Filter.new("customerId", "=", customer_id)])
end
|
.remote_class_name ⇒ Object
16
17
18
|
# File 'lib/rubill/customer_contact.rb', line 16
def self.remote_class_name
"CustomerContact"
end
|