Class: UndergroundWeather::Radar

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feed) ⇒ Radar

Returns a new instance of Radar.



5
6
7
8
# File 'lib/undergroundweather/features/radar.rb', line 5

def initialize(feed)
  @url   = feed['radar']['url']
  @image = feed['radar']['image_url']
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



3
4
5
# File 'lib/undergroundweather/features/radar.rb', line 3

def image
  @image
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/undergroundweather/features/radar.rb', line 3

def url
  @url
end