Class: MeteofranceApi::Warning::Phenomenon

Inherits:
Object
  • Object
show all
Defined in:
lib/meteofrance_api/models/warning/phenomenon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Phenomenon

Returns a new instance of Phenomenon.



5
6
7
8
# File 'lib/meteofrance_api/models/warning/phenomenon.rb', line 5

def initialize(data)
  @id = data["phenomenon_id"]
  @max_color_id = data["phenomenon_max_color_id"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/meteofrance_api/models/warning/phenomenon.rb', line 2

def id
  @id
end

#max_color_idObject (readonly)

Returns the value of attribute max_color_id.



3
4
5
# File 'lib/meteofrance_api/models/warning/phenomenon.rb', line 3

def max_color_id
  @max_color_id
end