Class: UndergroundWeather::Satellite
- Inherits:
-
Object
- Object
- UndergroundWeather::Satellite
- Defined in:
- lib/undergroundweather/features/satellite.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#image_ir4 ⇒ Object
readonly
Returns the value of attribute image_ir4.
-
#image_vis ⇒ Object
readonly
Returns the value of attribute image_vis.
Instance Method Summary collapse
-
#initialize(feed) ⇒ Satellite
constructor
A new instance of Satellite.
Constructor Details
#initialize(feed) ⇒ Satellite
Returns a new instance of Satellite.
5 6 7 8 9 10 11 |
# File 'lib/undergroundweather/features/satellite.rb', line 5 def initialize(feed) sat = feed['satellite'] @image = sat['image_url'] @image_vis = sat['image_url_vis'] @image_ir4 = sat['image_url_ir4'] end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
3 4 5 |
# File 'lib/undergroundweather/features/satellite.rb', line 3 def image @image end |
#image_ir4 ⇒ Object (readonly)
Returns the value of attribute image_ir4.
3 4 5 |
# File 'lib/undergroundweather/features/satellite.rb', line 3 def image_ir4 @image_ir4 end |
#image_vis ⇒ Object (readonly)
Returns the value of attribute image_vis.
3 4 5 |
# File 'lib/undergroundweather/features/satellite.rb', line 3 def image_vis @image_vis end |