Class: Flickry::Location

Inherits:
Base show all
Defined in:
lib/flickry/location.rb

Instance Method Summary collapse

Methods inherited from Base

#attributes

Methods inherited from SuperStruct

#[], #[]=, #each, #each_pair, #members

Constructor Details

#initialize(locus) ⇒ Location

Returns a new instance of Location.



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

def initialize(locus)
  super(nil)
  extract_attrs!(locus, [:accuracy, :country, :county, :latitude, :locality, :longitude, :neighbourhood, :place_id, :region, :woeid])
end