Class: MeteofranceApi::Weather::HazardForecast

Inherits:
Object
  • Object
show all
Defined in:
lib/meteofrance_api/models/weather/hazard_forecast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ HazardForecast

Returns a new instance of HazardForecast.



9
10
11
12
13
14
15
16
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 9

def initialize(data)
@rain_hazard_3h = data["rain_hazard_3h"]
@rain_hazard_6h = data["rain_hazard_6h"]
@snow_hazard_3h = data["snow_hazard_3h"]
@snow_hazard_6h = data["snow_hazard_6h"]
@freezing_hazard = data["freezing_hazard"]
@storm_hazard = data["storm_hazard"]
end

Instance Attribute Details

#freezing_hazardObject (readonly)

Returns the value of attribute freezing_hazard.



6
7
8
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 6

def freezing_hazard
  @freezing_hazard
end

#rain_hazard_3hObject (readonly)

Returns the value of attribute rain_hazard_3h.



2
3
4
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 2

def rain_hazard_3h
  @rain_hazard_3h
end

#rain_hazard_6hObject (readonly)

Returns the value of attribute rain_hazard_6h.



3
4
5
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 3

def rain_hazard_6h
  @rain_hazard_6h
end

#snow_hazard_3hObject (readonly)

Returns the value of attribute snow_hazard_3h.



4
5
6
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 4

def snow_hazard_3h
  @snow_hazard_3h
end

#snow_hazard_6hObject (readonly)

Returns the value of attribute snow_hazard_6h.



5
6
7
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 5

def snow_hazard_6h
  @snow_hazard_6h
end

#storm_hazardObject (readonly)

Returns the value of attribute storm_hazard.



7
8
9
# File 'lib/meteofrance_api/models/weather/hazard_forecast.rb', line 7

def storm_hazard
  @storm_hazard
end