Class: FtcApiV3Client::ApiV3EventType

Inherits:
Object
  • Object
show all
Defined in:
lib/ftc_api_v3_client/models/api_v3_event_type.rb

Constant Summary collapse

SCRIMMAGE =
"SCRIMMAGE".freeze
LEAGUE_MEET =
"LEAGUE_MEET".freeze
QUALIFIER =
"QUALIFIER".freeze
LEAGUE_TOURNAMENT =
"LEAGUE_TOURNAMENT".freeze
SUPER_QUALIFIER =
"SUPER_QUALIFIER".freeze
CHAMPIONSHIP =
"CHAMPIONSHIP".freeze
OTHER =
"OTHER".freeze
INNOVATION =
"INNOVATION".freeze
FIRST_CHAMPIONSHIP =
"FIRST_CHAMPIONSHIP".freeze
OFF_SEASON =
"OFF_SEASON".freeze
KICKOFF =
"KICKOFF".freeze
PREMIER =
"PREMIER".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



31
32
33
# File 'lib/ftc_api_v3_client/models/api_v3_event_type.rb', line 31

def self.all_vars
  @all_vars ||= [SCRIMMAGE, LEAGUE_MEET, QUALIFIER, LEAGUE_TOURNAMENT, SUPER_QUALIFIER, CHAMPIONSHIP, OTHER, INNOVATION, FIRST_CHAMPIONSHIP, OFF_SEASON, KICKOFF, PREMIER].freeze
end

.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



38
39
40
# File 'lib/ftc_api_v3_client/models/api_v3_event_type.rb', line 38

def self.build_from_hash(value)
  new.build_from_hash(value)
end

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



45
46
47
48
# File 'lib/ftc_api_v3_client/models/api_v3_event_type.rb', line 45

def build_from_hash(value)
  return value if ApiV3EventType.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #ApiV3EventType"
end