Class: UndergroundWeather::Radar
- Inherits:
-
Object
- Object
- UndergroundWeather::Radar
- Defined in:
- lib/undergroundweather/features/radar.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(feed) ⇒ Radar
constructor
A new instance of Radar.
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
#image ⇒ Object (readonly)
Returns the value of attribute image.
3 4 5 |
# File 'lib/undergroundweather/features/radar.rb', line 3 def image @image end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/undergroundweather/features/radar.rb', line 3 def url @url end |