Class: UndergroundWeather::Satellite

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#imageObject (readonly)

Returns the value of attribute image.



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

def image
  @image
end

#image_ir4Object (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_visObject (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