Class: WeatherHacks::ForecastMap::Pref
- Inherits:
-
Object
- Object
- WeatherHacks::ForecastMap::Pref
- Defined in:
- lib/weatherhacks.rb
Instance Attribute Summary collapse
-
#cities ⇒ Object
readonly
Returns the value of attribute cities.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #city(name, id, rss) ⇒ Object
-
#initialize(name) ⇒ Pref
constructor
A new instance of Pref.
Constructor Details
#initialize(name) ⇒ Pref
Returns a new instance of Pref.
21 22 23 24 |
# File 'lib/weatherhacks.rb', line 21 def initialize(name) @name = name @cities = [] end |
Instance Attribute Details
#cities ⇒ Object (readonly)
Returns the value of attribute cities.
20 21 22 |
# File 'lib/weatherhacks.rb', line 20 def cities @cities end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/weatherhacks.rb', line 20 def name @name end |