Class: UndergroundWeather::Webcams
- Inherits:
-
Array
- Object
- Array
- UndergroundWeather::Webcams
- Defined in:
- lib/undergroundweather/features/webcams.rb
Instance Method Summary collapse
-
#initialize(feed) ⇒ Webcams
constructor
A new instance of Webcams.
Constructor Details
#initialize(feed) ⇒ Webcams
Returns a new instance of Webcams.
3 4 5 6 7 8 9 |
# File 'lib/undergroundweather/features/webcams.rb', line 3 def initialize(feed) super() feed['webcams'].each do |wc| self << Webcam.new(wc) end end |