Class: MeteofranceApi::Warning::Phenomenon
- Inherits:
-
Object
- Object
- MeteofranceApi::Warning::Phenomenon
- Defined in:
- lib/meteofrance_api/models/warning/phenomenon.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#max_color_id ⇒ Object
readonly
Returns the value of attribute max_color_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ Phenomenon
constructor
A new instance of Phenomenon.
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
#id ⇒ Object (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_id ⇒ Object (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 |