Class: FtcEventsClient::JunctionElement
- Inherits:
-
Object
- Object
- FtcEventsClient::JunctionElement
- Defined in:
- lib/ftc_events_client/models/junction_element.rb
Constant Summary collapse
- MY_CONE =
'MY_CONE'.freeze
- OTHER_CONE =
'OTHER_CONE'.freeze
- MY_R1_BEACON =
'MY_R1_BEACON'.freeze
- MY_R2_BEACON =
'MY_R2_BEACON'.freeze
- OTHER_R1_BEACON =
'OTHER_R1_BEACON'.freeze
- OTHER_R2_BEACON =
'OTHER_R2_BEACON'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
26 27 28 29 30 |
# File 'lib/ftc_events_client/models/junction_element.rb', line 26 def build_from_hash(value) constantValues = JunctionElement.constants.select { |c| JunctionElement::const_get(c) == value } raise "Invalid ENUM value #{value} for class #JunctionElement" if constantValues.empty? value end |