Class: Spina::Shop::Address
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::Shop::Address
- Defined in:
- app/models/spina/shop/address.rb
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
15 16 17 |
# File 'app/models/spina/shop/address.rb', line 15 def address "#{street1} #{house_number}#{house_number_addition}".strip end |
#name ⇒ Object
11 12 13 |
# File 'app/models/spina/shop/address.rb', line 11 def name read_attribute(:name) || "#{first_name} #{last_name}".strip end |