Class WeatherHacks::ForecastMap::Pref
In: lib/weatherhacks.rb
Parent: Object

Methods

city   new  

Attributes

cities  [R] 
name  [R] 

Public Class methods

[Source]

    # File lib/weatherhacks.rb, line 30
30:       def initialize(name)
31:         @name = name
32:         @cities = []
33:       end

Public Instance methods

[Source]

    # File lib/weatherhacks.rb, line 35
35:       def city(name, id, rss)
36:         city = City.new(name, id, rss)
37:         @cities << city
38:         CITY[city.name] = city
39:       end

[Validate]