Class: Flickry::Place

Inherits:
String
  • Object
show all
Defined in:
lib/flickry/place.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loc, scale) ⇒ Place

Returns a new instance of Place.



4
5
6
7
8
9
10
# File 'lib/flickry/place.rb', line 4

def initialize(loc, scale)
  super(loc.to_s)
  @place_id = loc.place_id
  @woeid    = loc.woeid
  @scale    = scale
  @name     = self.to_s
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#place_idObject (readonly)

Returns the value of attribute place_id.



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

def place_id
  @place_id
end

#scaleObject (readonly)

Returns the value of attribute scale.



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

def scale
  @scale
end

#woeidObject (readonly)

Returns the value of attribute woeid.



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

def woeid
  @woeid
end