Class: Graticule::Location
- Inherits:
-
Object
- Object
- Graticule::Location
- Defined in:
- lib/barometer/extensions/graticule.rb
Instance Attribute Summary collapse
-
#address_line ⇒ Object
Returns the value of attribute address_line.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
Instance Method Summary collapse
Instance Attribute Details
#address_line ⇒ Object
Returns the value of attribute address_line.
4 5 6 |
# File 'lib/barometer/extensions/graticule.rb', line 4 def address_line @address_line end |
#country_code ⇒ Object
Returns the value of attribute country_code.
4 5 6 |
# File 'lib/barometer/extensions/graticule.rb', line 4 def country_code @country_code end |
Instance Method Details
#attributes ⇒ Object
6 7 8 9 10 11 |
# File 'lib/barometer/extensions/graticule.rb', line 6 def attributes [:latitude, :longitude, :street, :locality, :region, :postal_code, :country, :precision, :cuntry_code, :address_line].inject({}) do |result,attr| result[attr] = self.send(attr) unless self.send(attr).blank? result end end |