Class: Address
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Address
- Defined in:
- app/models/address.rb
Instance Method Summary collapse
- #kind ⇒ Object
- #kind=(kind) ⇒ Object
-
#to_s ⇒ Object
Returns address in a string #firstname #name #address #zip_code #city.
Instance Method Details
#kind ⇒ Object
14 15 16 |
# File 'app/models/address.rb', line 14 def kind read_attribute(:type) end |
#kind=(kind) ⇒ Object
18 19 20 |
# File 'app/models/address.rb', line 18 def kind=(kind) write_attribute(:type, kind) end |
#to_s ⇒ Object
Returns address in a string #firstname #name #address #zip_code #city
10 11 12 |
# File 'app/models/address.rb', line 10 def to_s "#{I18n.t civility, :scope => [:civility, :label]} #{firstname} #{name} #{address} #{zip_code} #{city} #{country.name.upcase}" end |