class Io::Flow::V0::Models::PriceFacetBoundary
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25442 def PriceFacetBoundary.ALL @@all ||= [PriceFacetBoundary.min, PriceFacetBoundary.max] end
apply(value)
click to toggle source
Returns the instance of PriceFacetBoundary
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 25427 def PriceFacetBoundary.apply(value) if value.instance_of?(PriceFacetBoundary) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PriceFacetBoundary.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of PriceFacetBoundary
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 25437 def PriceFacetBoundary.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PriceFacetBoundary.ALL.find { |v| v.value == value } end
max()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25450 def PriceFacetBoundary.max @@_max ||= PriceFacetBoundary.new('max') end
min()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25446 def PriceFacetBoundary.min @@_min ||= PriceFacetBoundary.new('min') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25422 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25454 def to_hash value end