Class: Location::NormalizableAddress
- Includes:
- AddressNormalizable, AddressValidatable
- Defined in:
- app/models/location/normalizable_address.rb
Instance Attribute Summary collapse
-
#city_name ⇒ Object
Returns the value of attribute city_name.
-
#district_name ⇒ Object
Returns the value of attribute district_name.
-
#state_name ⇒ Object
Returns the value of attribute state_name.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from AddressNormalizable
#address_normalizer, #normalizable_address_attributes=
Methods inherited from Address
Instance Attribute Details
#city_name ⇒ Object
Returns the value of attribute city_name.
6 7 8 |
# File 'app/models/location/normalizable_address.rb', line 6 def city_name @city_name end |
#district_name ⇒ Object
Returns the value of attribute district_name.
6 7 8 |
# File 'app/models/location/normalizable_address.rb', line 6 def district_name @district_name end |
#state_name ⇒ Object
Returns the value of attribute state_name.
6 7 8 |
# File 'app/models/location/normalizable_address.rb', line 6 def state_name @state_name end |
Class Method Details
.inheritance_column ⇒ Object
19 20 21 |
# File 'app/models/location/normalizable_address.rb', line 19 def self.inheritance_column nil end |
Instance Method Details
#address_persister ⇒ Object
11 12 13 |
# File 'app/models/location/normalizable_address.rb', line 11 def address_persister @address_persister ||= AddressPersister.new(address_normalizer, self, true) end |
#persist_address! ⇒ Object
15 16 17 |
# File 'app/models/location/normalizable_address.rb', line 15 def persist_address! address_persister.persist! end |