Class: Flickrie::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accuracyString (readonly)

Returns:

  • (String)


13
14
15
# File 'lib/flickrie/objects/location.rb', line 13

def accuracy
  @accuracy
end

#contextFixnum (readonly)

Returns:

  • (Fixnum)


15
16
17
# File 'lib/flickrie/objects/location.rb', line 15

def context
  @context
end

#countryStruct (readonly)

Returns a struct with attributes #name, #place_id and #woeid

Returns:

  • (Struct)


36
37
38
# File 'lib/flickrie/objects/location.rb', line 36

def country
  @country
end

#countyStruct (readonly)

Returns a struct with attributes #name, #place_id and #woeid

Returns:

  • (Struct)


28
29
30
# File 'lib/flickrie/objects/location.rb', line 28

def county
  @county
end

#hashHash (readonly)

Returns the raw hash from the response. Useful if something isn't available by methods.

Returns:



47
48
49
# File 'lib/flickrie/objects/location.rb', line 47

def hash
  @hash
end

#latitudeFixnum (readonly)

Returns:

  • (Fixnum)


9
10
11
# File 'lib/flickrie/objects/location.rb', line 9

def latitude
  @latitude
end

#localityStruct (readonly)

Returns a struct with attributes #name, #place_id and #woeid

Returns:

  • (Struct)


24
25
26
# File 'lib/flickrie/objects/location.rb', line 24

def locality
  @locality
end

#longitudeFixnum (readonly)

Returns:

  • (Fixnum)


11
12
13
# File 'lib/flickrie/objects/location.rb', line 11

def longitude
  @longitude
end

#neighbourhoodStruct (readonly)

Returns a struct with attributes #name, #place_id and #woeid

Returns:

  • (Struct)


20
21
22
# File 'lib/flickrie/objects/location.rb', line 20

def neighbourhood
  @neighbourhood
end

#place_idString (readonly)

Returns:

  • (String)


39
40
41
# File 'lib/flickrie/objects/location.rb', line 39

def place_id
  @place_id
end

#regionStruct (readonly)

Returns a struct with attributes #name, #place_id and #woeid

Returns:

  • (Struct)


32
33
34
# File 'lib/flickrie/objects/location.rb', line 32

def region
  @region
end

#woeidString (readonly)

Returns:

  • (String)


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