Class: WeatherHacks::ForecastMap::City

Inherits:
Object
  • Object
show all
Defined in:
lib/weatherhacks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, id, rss) ⇒ City

Returns a new instance of City.



35
36
37
38
39
# File 'lib/weatherhacks.rb', line 35

def initialize(name, id, rss)
  @name = name
  @id = id
  @rss = rss
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



34
35
36
# File 'lib/weatherhacks.rb', line 34

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



34
35
36
# File 'lib/weatherhacks.rb', line 34

def name
  @name
end

#rssObject (readonly)

Returns the value of attribute rss.



34
35
36
# File 'lib/weatherhacks.rb', line 34

def rss
  @rss
end