Class: Flickr::Photos::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/flickr/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accuracyObject

Returns the value of attribute accuracy.



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

def accuracy
  @accuracy
end

#latitudeObject

Returns the value of attribute latitude.



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

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



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

def longitude
  @longitude
end