Class: Watchtower::Address
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Watchtower::Address
- Defined in:
- app/models/watchtower/address.rb
Instance Method Summary collapse
Instance Method Details
#full_address ⇒ Object
9 10 11 |
# File 'app/models/watchtower/address.rb', line 9 def full_address [:address_1, :address_2, :address_3, :city, :state, :country].compact.join("\n") end |
#kind ⇒ Object
5 6 7 |
# File 'app/models/watchtower/address.rb', line 5 def kind self[:kind] || "primary" end |
#to_s ⇒ Object
13 14 15 |
# File 'app/models/watchtower/address.rb', line 13 def to_s name end |