Method: Io::Flow::V0::Models::AttributeDataType.from_string

Defined in:
lib/flow_commerce/flow_api_v0_client.rb

.from_string(value) ⇒ Object

Returns the instance of AttributeDataType for this value, or nil if not found



7381
7382
7383
7384
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7381

def AttributeDataType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  AttributeDataType.ALL.find { |v| v.value == value }
end