Class: FtcEventsClient::AutoNavigation
- Inherits:
-
Object
- Object
- FtcEventsClient::AutoNavigation
- Defined in:
- lib/ftc_events_client/models/auto_navigation.rb
Constant Summary collapse
- NONE =
'NONE'.freeze
- SUBSTATION_TERMINAL =
'SUBSTATION_TERMINAL'.freeze
- SIGNAL_ZONE =
'SIGNAL_ZONE'.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
23 24 25 26 27 |
# File 'lib/ftc_events_client/models/auto_navigation.rb', line 23 def build_from_hash(value) constantValues = AutoNavigation.constants.select { |c| AutoNavigation::const_get(c) == value } raise "Invalid ENUM value #{value} for class #AutoNavigation" if constantValues.empty? value end |