Class: FtcApiV3Client::ApiV3AwardType

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

Constant Summary collapse

JUDGES =
"JUDGES".freeze
COMPASS =
"COMPASS".freeze
PROMOTE =
"PROMOTE".freeze
CONTROL =
"CONTROL".freeze
MOTIVATE =
"MOTIVATE".freeze
DESIGN =
"DESIGN".freeze
INNOVATE =
"INNOVATE".freeze
CONNECT =
"CONNECT".freeze
REACH =
"REACH".freeze
SUSTAIN =
"SUSTAIN".freeze
THINK =
"THINK".freeze
LEADERSHIP =
"LEADERSHIP".freeze
INSPIRE =
"INSPIRE".freeze
EVENT_FINALIST =
"EVENT_FINALIST".freeze
EVENT_WINNER =
"EVENT_WINNER".freeze
DIVISION_FINALIST =
"DIVISION_FINALIST".freeze
DIVISION_WINNER =
"DIVISION_WINNER".freeze
CONFERENCE_FINALIST =
"CONFERENCE_FINALIST".freeze
TOP_RANKED =
"TOP_RANKED".freeze
VOLUNTEER =
"VOLUNTEER".freeze
CUSTOM =
"CUSTOM".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



40
41
42
# File 'lib/ftc_api_v3_client/models/api_v3_award_type.rb', line 40

def self.all_vars
  @all_vars ||= [JUDGES, COMPASS, PROMOTE, CONTROL, MOTIVATE, DESIGN, INNOVATE, CONNECT, REACH, SUSTAIN, THINK, LEADERSHIP, INSPIRE, EVENT_FINALIST, EVENT_WINNER, DIVISION_FINALIST, DIVISION_WINNER, CONFERENCE_FINALIST, TOP_RANKED, VOLUNTEER, CUSTOM].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



47
48
49
# File 'lib/ftc_api_v3_client/models/api_v3_award_type.rb', line 47

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



54
55
56
57
# File 'lib/ftc_api_v3_client/models/api_v3_award_type.rb', line 54

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