Class: FtcApiV3Client::ApiV3EventType
- Inherits:
-
Object
- Object
- FtcApiV3Client::ApiV3EventType
- 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
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
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
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
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 |