Class: Flickr::Photos::Location
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
Returns the value of attribute accuracy.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Location
constructor
Create an instance of Flickr::Photos::Location.
Constructor Details
#initialize(attributes) ⇒ Location
Create an instance of Flickr::Photos::Location
Params
-
attributes (Required)
a hash of attributes used to set the initial values of the Location object
10 11 12 13 14 |
# File 'lib/flickr/location.rb', line 10 def initialize(attributes) attributes.each do |k,v| send("#{k}=", v) end end |
Instance Attribute Details
#accuracy ⇒ Object
Returns the value of attribute accuracy.
3 4 5 |
# File 'lib/flickr/location.rb', line 3 def accuracy @accuracy end |
#latitude ⇒ Object
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/flickr/location.rb', line 3 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/flickr/location.rb', line 3 def longitude @longitude end |