Class: UndergroundWeather::Webcams

Inherits:
Array
  • Object
show all
Defined in:
lib/undergroundweather/features/webcams.rb

Instance Method Summary collapse

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