Class: DatadogAPIClient::V1::SyntheticsDeviceID
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsDeviceID
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_device_id.rb
Constant Summary collapse
- LAPTOP_LARGE =
"laptop_large".freeze
- TABLET =
"tablet".freeze
- MOBILE_SMALL =
"mobile_small".freeze
- CHROME_LAPTOP_LARGE =
"chrome.laptop_large".freeze
- CHROME_TABLET =
"chrome.tablet".freeze
- CHROME_MOBILE_SMALL =
"chrome.mobile_small".freeze
- FIREFOX_LAPTOP_LARGE =
"firefox.laptop_large".freeze
- FIREFOX_TABLET =
"firefox.tablet".freeze
- FIREFOX_MOBILE_SMALL =
"firefox.mobile_small".freeze
- EDGE_LAPTOP_LARGE =
"edge.laptop_large".freeze
- EDGE_TABLET =
"edge.tablet".freeze
- EDGE_MOBILE_SMALL =
"edge.mobile_small".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.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 |
# File 'lib/datadog_api_client/v1/models/synthetics_device_id.rb', line 37 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
44 45 46 47 |
# File 'lib/datadog_api_client/v1/models/synthetics_device_id.rb', line 44 def build_from_hash(value) constantValues = SyntheticsDeviceID.constants.select { |c| SyntheticsDeviceID::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end |