Class: Address
- Defined in:
- app/models/address.rb
Instance Method Summary collapse
Instance Method Details
#full_name ⇒ Object
15 16 17 |
# File 'app/models/address.rb', line 15 def full_name self.firstname + " " + self.lastname end |
#state_text ⇒ Object
19 20 21 |
# File 'app/models/address.rb', line 19 def state_text state.nil? ? state_name : (state.abbr.blank? ? state.name : state.abbr) end |