Class: Rdayone::Location
- Inherits:
-
Object
- Object
- Rdayone::Location
- Includes:
- AttributeMappable
- Defined in:
- lib/rdayone/location.rb
Instance Attribute Summary collapse
-
#attribute_mappings ⇒ Object
readonly
Returns the value of attribute attribute_mappings.
-
#plist_hash ⇒ Object
readonly
Returns the value of attribute plist_hash.
Instance Method Summary collapse
-
#initialize(plist_hash) ⇒ Location
constructor
A new instance of Location.
Methods included from AttributeMappable
Constructor Details
#initialize(plist_hash) ⇒ Location
Returns a new instance of Location.
7 8 9 10 11 12 13 14 15 |
# File 'lib/rdayone/location.rb', line 7 def initialize(plist_hash) @plist_hash = plist_hash @attribute_mappings = { :latitude => "Latitude", :longitude => "Longitude", :place_name => "Place Name", :locality => "Locality" } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rdayone::AttributeMappable
Instance Attribute Details
#attribute_mappings ⇒ Object (readonly)
Returns the value of attribute attribute_mappings.
3 4 5 |
# File 'lib/rdayone/location.rb', line 3 def attribute_mappings @attribute_mappings end |
#plist_hash ⇒ Object (readonly)
Returns the value of attribute plist_hash.
3 4 5 |
# File 'lib/rdayone/location.rb', line 3 def plist_hash @plist_hash end |