class Io::Flow::V0::Models::SubcatalogItemStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26898 def SubcatalogItemStatus.ALL @@all ||= [SubcatalogItemStatus.excluded, SubcatalogItemStatus.included, SubcatalogItemStatus.restricted] end
apply(value)
click to toggle source
Returns the instance of SubcatalogItemStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 26883 def SubcatalogItemStatus.apply(value) if value.instance_of?(SubcatalogItemStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || SubcatalogItemStatus.new(value)) end end
excluded()
click to toggle source
The user has chosen to exclude the item from the associated subcatalog.
# File lib/flow_commerce/flow_api_v0_client.rb, line 26903 def SubcatalogItemStatus.excluded @@_excluded ||= SubcatalogItemStatus.new('excluded') end
from_string(value)
click to toggle source
Returns the instance of SubcatalogItemStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 26893 def SubcatalogItemStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) SubcatalogItemStatus.ALL.find { |v| v.value == value } end
included()
click to toggle source
The item is included in the associated subcatalog.
# File lib/flow_commerce/flow_api_v0_client.rb, line 26908 def SubcatalogItemStatus.included @@_included ||= SubcatalogItemStatus.new('included') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26878 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
restricted()
click to toggle source
Item
is not allowed to be sold in the market associated with the given subcatalog.
# File lib/flow_commerce/flow_api_v0_client.rb, line 26914 def SubcatalogItemStatus.restricted @@_restricted ||= SubcatalogItemStatus.new('restricted') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26918 def to_hash value end