Class: Flickry::Place
- Inherits:
-
String
- Object
- String
- Flickry::Place
- Defined in:
- lib/flickry/place.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#place_id ⇒ Object
readonly
Returns the value of attribute place_id.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
-
#woeid ⇒ Object
readonly
Returns the value of attribute woeid.
Instance Method Summary collapse
-
#initialize(loc, scale) ⇒ Place
constructor
A new instance of Place.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/flickry/place.rb', line 3 def name @name end |
#place_id ⇒ Object (readonly)
Returns the value of attribute place_id.
3 4 5 |
# File 'lib/flickry/place.rb', line 3 def place_id @place_id end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
3 4 5 |
# File 'lib/flickry/place.rb', line 3 def scale @scale end |
#woeid ⇒ Object (readonly)
Returns the value of attribute woeid.
3 4 5 |
# File 'lib/flickry/place.rb', line 3 def woeid @woeid end |