Class: Rdayone::Location

Inherits:
Object
  • Object
show all
Includes:
AttributeMappable
Defined in:
lib/rdayone/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeMappable

#method_missing

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_mappingsObject (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_hashObject (readonly)

Returns the value of attribute plist_hash.



3
4
5
# File 'lib/rdayone/location.rb', line 3

def plist_hash
  @plist_hash
end