Class: FtcEventsClient::Ordinates

Inherits:
Object
  • Object
show all
Defined in:
lib/ftc_events_client/models/ordinates.rb

Constant Summary collapse

NONE =
'None'.freeze
X =
'X'.freeze
Y =
'Y'.freeze
XY =
'XY'.freeze
Z =
'Z'.freeze
XYZ =
'XYZ'.freeze
SPATIAL4 =
'Spatial4'.freeze
SPATIAL5 =
'Spatial5'.freeze
SPATIAL6 =
'Spatial6'.freeze
SPATIAL7 =
'Spatial7'.freeze
SPATIAL8 =
'Spatial8'.freeze
SPATIAL9 =
'Spatial9'.freeze
SPATIAL10 =
'Spatial10'.freeze
SPATIAL11 =
'Spatial11'.freeze
SPATIAL12 =
'Spatial12'.freeze
SPATIAL13 =
'Spatial13'.freeze
SPATIAL14 =
'Spatial14'.freeze
SPATIAL15 =
'Spatial15'.freeze
SPATIAL16 =
'Spatial16'.freeze
ALL_SPATIAL_ORDINATES =
'AllSpatialOrdinates'.freeze
M =
'M'.freeze
XYM =
'XYM'.freeze
XYZM =
'XYZM'.freeze
MEASURE2 =
'Measure2'.freeze
MEASURE3 =
'Measure3'.freeze
MEASURE4 =
'Measure4'.freeze
MEASURE5 =
'Measure5'.freeze
MEASURE6 =
'Measure6'.freeze
MEASURE7 =
'Measure7'.freeze
MEASURE8 =
'Measure8'.freeze
MEASURE9 =
'Measure9'.freeze
MEASURE10 =
'Measure10'.freeze
MEASURE11 =
'Measure11'.freeze
MEASURE12 =
'Measure12'.freeze
MEASURE13 =
'Measure13'.freeze
MEASURE14 =
'Measure14'.freeze
MEASURE15 =
'Measure15'.freeze
MEASURE16 =
'Measure16'.freeze
ALL_MEASURE_ORDINATES =
'AllMeasureOrdinates'.freeze
ALL_ORDINATES =
'AllOrdinates'.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



60
61
62
63
64
# File 'lib/ftc_events_client/models/ordinates.rb', line 60

def build_from_hash(value)
  constantValues = Ordinates.constants.select { |c| Ordinates::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #Ordinates" if constantValues.empty?
  value
end