Class: CustomerDAO

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/shipping_backup_client/models/customer_backup_dao.rb

Overview

Schema Information

Table name: customers

id         :integer          not null, primary key
created_at :datetime
updated_at :datetime

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.matching_customer_id(id) ⇒ Object



17
18
19
# File 'lib/shipping_backup_client/models/customer_backup_dao.rb', line 17

def self.matching_customer_id(id)
  CustomerDAO.find_by_id(id)
end

Instance Method Details

#postal_addressObject



21
22
23
# File 'lib/shipping_backup_client/models/customer_backup_dao.rb', line 21

def postal_address
  self.postal_addresses.enabled.last
end