Class: Nppes::NpAddress

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/nppes/models/np_address.rb

Instance Method Summary collapse

Instance Method Details

#decoded_countryObject



7
8
9
# File 'lib/nppes/models/np_address.rb', line 7

def decoded_country
  Nppes.decode_value(:country, country)
end

#decoded_stateObject



11
12
13
# File 'lib/nppes/models/np_address.rb', line 11

def decoded_state
  Nppes.decode_value(:state, state)
end

#to_sObject



15
16
17
# File 'lib/nppes/models/np_address.rb', line 15

def to_s
  "#{address1} | #{city}, #{decoded_state}, #{decoded_country}, #{zip}, #{phone}"
end