Class: Io::Flow::V0::Models::OrganizationStatus
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrganizationStatus
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .active ⇒ Object
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of OrganizationStatus for this value, creating a new instance for an unknown value.
-
.deactivated ⇒ Object
Manually deactivated.
-
.from_string(value) ⇒ Object
Returns the instance of OrganizationStatus for this value, or nil if not found.
-
.inactive ⇒ Object
Determined by usage: ex: orders placed, experience updated, catalog items updated, etc…
Instance Method Summary collapse
-
#initialize(value) ⇒ OrganizationStatus
constructor
A new instance of OrganizationStatus.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ OrganizationStatus
Returns a new instance of OrganizationStatus.
18847 18848 18849 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18847 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18845 18846 18847 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18845 def value @value end |
Class Method Details
.active ⇒ Object
18871 18872 18873 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18871 def OrganizationStatus.active @@_active ||= OrganizationStatus.new('active') end |
.ALL ⇒ Object
18867 18868 18869 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18867 def OrganizationStatus.ALL @@all ||= [OrganizationStatus.active, OrganizationStatus.inactive, OrganizationStatus.deactivated] end |
.apply(value) ⇒ Object
Returns the instance of OrganizationStatus for this value, creating a new instance for an unknown value
18852 18853 18854 18855 18856 18857 18858 18859 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18852 def OrganizationStatus.apply(value) if value.instance_of?(OrganizationStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrganizationStatus.new(value)) end end |
.deactivated ⇒ Object
Manually deactivated
18882 18883 18884 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18882 def OrganizationStatus.deactivated @@_deactivated ||= OrganizationStatus.new('deactivated') end |
.from_string(value) ⇒ Object
Returns the instance of OrganizationStatus for this value, or nil if not found
18862 18863 18864 18865 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18862 def OrganizationStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrganizationStatus.ALL.find { |v| v.value == value } end |
.inactive ⇒ Object
Determined by usage: ex: orders placed, experience updated, catalog items updated, etc…
18877 18878 18879 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18877 def OrganizationStatus.inactive @@_inactive ||= OrganizationStatus.new('inactive') end |
Instance Method Details
#to_hash ⇒ Object
18886 18887 18888 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18886 def to_hash value end |