Class: DatadogAPIClient::V2::ApplicationKeysSort
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::ApplicationKeysSort
- Includes:
- BaseEnumModel
- Defined in:
- lib/datadog_api_client/v2/models/application_keys_sort.rb,
lib/datadog_api_client/v2/models/application_keys_sort.rb
Overview
Sorting options
Constant Summary collapse
- CREATED_AT_ASCENDING =
"created_at".freeze
- CREATED_AT_DESCENDING =
"-created_at".freeze
- LAST4_ASCENDING =
"last4".freeze
- LAST4_DESCENDING =
"-last4".freeze
- NAME_ASCENDING =
"name".freeze
- NAME_DESCENDING =
"-name".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Methods included from BaseEnumModel
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/datadog_api_client/v2/models/application_keys_sort.rb', line 31 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
38 39 40 41 |
# File 'lib/datadog_api_client/v2/models/application_keys_sort.rb', line 38 def build_from_hash(value) constantValues = ApplicationKeysSort.constants.select { |c| ApplicationKeysSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end |