Class: Flickrie::Location
- Inherits:
-
Object
- Object
- Flickrie::Location
- Defined in:
- lib/flickrie/objects/location.rb
Instance Attribute Summary collapse
- #accuracy ⇒ String readonly
- #context ⇒ Fixnum readonly
-
#country ⇒ Struct
readonly
Returns a struct with attributes
#name
,#place_id
and#woeid
. -
#county ⇒ Struct
readonly
Returns a struct with attributes
#name
,#place_id
and#woeid
. -
#hash ⇒ Hash
readonly
Returns the raw hash from the response.
- #latitude ⇒ Fixnum readonly
-
#locality ⇒ Struct
readonly
Returns a struct with attributes
#name
,#place_id
and#woeid
. - #longitude ⇒ Fixnum readonly
-
#neighbourhood ⇒ Struct
readonly
Returns a struct with attributes
#name
,#place_id
and#woeid
. - #place_id ⇒ String readonly
-
#region ⇒ Struct
readonly
Returns a struct with attributes
#name
,#place_id
and#woeid
. - #woeid ⇒ String readonly
Instance Method Summary collapse
Instance Attribute Details
#accuracy ⇒ String (readonly)
13 14 15 |
# File 'lib/flickrie/objects/location.rb', line 13 def accuracy @accuracy end |
#context ⇒ Fixnum (readonly)
15 16 17 |
# File 'lib/flickrie/objects/location.rb', line 15 def context @context end |
#country ⇒ Struct (readonly)
Returns a struct with attributes #name
, #place_id
and #woeid
36 37 38 |
# File 'lib/flickrie/objects/location.rb', line 36 def country @country end |
#county ⇒ Struct (readonly)
Returns a struct with attributes #name
, #place_id
and #woeid
28 29 30 |
# File 'lib/flickrie/objects/location.rb', line 28 def county @county end |
#hash ⇒ Hash (readonly)
Returns the raw hash from the response. Useful if something isn't available by methods.
47 48 49 |
# File 'lib/flickrie/objects/location.rb', line 47 def hash @hash end |
#latitude ⇒ Fixnum (readonly)
9 10 11 |
# File 'lib/flickrie/objects/location.rb', line 9 def latitude @latitude end |
#locality ⇒ Struct (readonly)
Returns a struct with attributes #name
, #place_id
and #woeid
24 25 26 |
# File 'lib/flickrie/objects/location.rb', line 24 def locality @locality end |
#longitude ⇒ Fixnum (readonly)
11 12 13 |
# File 'lib/flickrie/objects/location.rb', line 11 def longitude @longitude end |
#neighbourhood ⇒ Struct (readonly)
Returns a struct with attributes #name
, #place_id
and #woeid
20 21 22 |
# File 'lib/flickrie/objects/location.rb', line 20 def neighbourhood @neighbourhood end |
#place_id ⇒ String (readonly)
39 40 41 |
# File 'lib/flickrie/objects/location.rb', line 39 def place_id @place_id end |
#region ⇒ Struct (readonly)
Returns a struct with attributes #name
, #place_id
and #woeid
32 33 34 |
# File 'lib/flickrie/objects/location.rb', line 32 def region @region end |
#woeid ⇒ String (readonly)
41 42 43 |
# File 'lib/flickrie/objects/location.rb', line 41 def woeid @woeid end |
Instance Method Details
#[](key) ⇒ Object
43 |
# File 'lib/flickrie/objects/location.rb', line 43 def [](key) @hash[key] end |