Class: Flickry::Location
- Inherits:
-
Base
- Object
- OpenStruct
- SuperStruct
- Base
- Flickry::Location
- Defined in:
- lib/flickry/location.rb
Instance Method Summary collapse
-
#initialize(locus) ⇒ Location
constructor
A new instance of Location.
Methods inherited from Base
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 |