Class: Mycrm::Models::OfficeAddress
- Inherits:
-
Object
- Object
- Mycrm::Models::OfficeAddress
- Includes:
- Mycrm::Model
- Defined in:
- lib/mycrm/models/office_address.rb
Class Method Summary collapse
Methods included from Mycrm::Model
Class Method Details
.find(id) ⇒ Object
28 29 30 |
# File 'lib/mycrm/models/office_address.rb', line 28 def self.find(id) find_by_organizationId(id) end |
.parse(body) ⇒ Object
32 33 34 |
# File 'lib/mycrm/models/office_address.rb', line 32 def self.parse(body) JSON.parse(body).find{ |address| !address['isMailing'] } || {} end |