Class: WeatherHacks::ForecastMap::Area
- Inherits:
-
Object
- Object
- WeatherHacks::ForecastMap::Area
- Defined in:
- lib/weatherhacks.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#prefs ⇒ Object
readonly
Returns the value of attribute prefs.
-
#rss ⇒ Object
readonly
Returns the value of attribute rss.
Instance Method Summary collapse
-
#initialize(name, rss) ⇒ Area
constructor
A new instance of Area.
- #pref(name, &block) ⇒ Object
Constructor Details
#initialize(name, rss) ⇒ Area
Returns a new instance of Area.
5 6 7 8 9 |
# File 'lib/weatherhacks.rb', line 5 def initialize(name, rss) @name = name @rss = rss @prefs = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/weatherhacks.rb', line 4 def name @name end |
#prefs ⇒ Object (readonly)
Returns the value of attribute prefs.
4 5 6 |
# File 'lib/weatherhacks.rb', line 4 def prefs @prefs end |
#rss ⇒ Object (readonly)
Returns the value of attribute rss.
4 5 6 |
# File 'lib/weatherhacks.rb', line 4 def rss @rss end |