Class: Nppes::NpAddress
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Nppes::NpAddress
- Defined in:
- lib/nppes/models/np_address.rb
Instance Method Summary collapse
Instance Method Details
#decoded_country ⇒ Object
7 8 9 |
# File 'lib/nppes/models/np_address.rb', line 7 def decoded_country Nppes.decode_value(:country, country) end |
#decoded_state ⇒ Object
11 12 13 |
# File 'lib/nppes/models/np_address.rb', line 11 def decoded_state Nppes.decode_value(:state, state) end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/nppes/models/np_address.rb', line 15 def to_s "#{address1} | #{city}, #{decoded_state}, #{decoded_country}, #{zip}, #{phone}" end |