Class: FtcEventsClient::AutoNavigation

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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