Class: Location::NormalizableAddress

Inherits:
Address
  • Object
show all
Includes:
AddressNormalizable, AddressValidatable
Defined in:
app/models/location/normalizable_address.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AddressNormalizable

#address_normalizer, #normalizable_address_attributes=

Methods inherited from Address

#to_hash

Instance Attribute Details

#city_nameObject

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_nameObject

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_nameObject

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_columnObject



19
20
21
# File 'app/models/location/normalizable_address.rb', line 19

def self.inheritance_column
  nil
end

Instance Method Details

#address_persisterObject



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