Class: Address

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/address.rb

Instance Method Summary collapse

Instance Method Details

#full_nameObject



15
16
17
# File 'app/models/address.rb', line 15

def full_name
  self.firstname + " " + self.lastname
end

#state_textObject



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