Class: Io::Flow::V0::Models::OnboardingBlockedReason
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OnboardingBlockedReason
- 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
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of OnboardingBlockedReason for this value, creating a new instance for an unknown value.
- .business_street_address_is_blank ⇒ Object
- .business_street_address_is_po_box ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of OnboardingBlockedReason for this value, or nil if not found.
- .street_address_is_blank_3pl ⇒ Object
- .street_address_is_po_box_3pl ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ OnboardingBlockedReason
constructor
A new instance of OnboardingBlockedReason.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ OnboardingBlockedReason
Returns a new instance of OnboardingBlockedReason.
22650 22651 22652 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22650 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
22648 22649 22650 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22648 def value @value end |
Class Method Details
.ALL ⇒ Object
22670 22671 22672 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22670 def OnboardingBlockedReason.ALL @@all ||= [OnboardingBlockedReason.street_address_is_blank_3pl, OnboardingBlockedReason.street_address_is_po_box_3pl, OnboardingBlockedReason.business_street_address_is_blank, OnboardingBlockedReason.business_street_address_is_po_box] end |
.apply(value) ⇒ Object
Returns the instance of OnboardingBlockedReason for this value, creating a new instance for an unknown value
22655 22656 22657 22658 22659 22660 22661 22662 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22655 def OnboardingBlockedReason.apply(value) if value.instance_of?(OnboardingBlockedReason) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OnboardingBlockedReason.new(value)) end end |
.business_street_address_is_blank ⇒ Object
22682 22683 22684 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22682 def OnboardingBlockedReason.business_street_address_is_blank @@_business_street_address_is_blank ||= OnboardingBlockedReason.new('business_street_address_is_blank') end |
.business_street_address_is_po_box ⇒ Object
22686 22687 22688 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22686 def OnboardingBlockedReason.business_street_address_is_po_box @@_business_street_address_is_po_box ||= OnboardingBlockedReason.new('business_street_address_is_po_box') end |
.from_string(value) ⇒ Object
Returns the instance of OnboardingBlockedReason for this value, or nil if not found
22665 22666 22667 22668 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22665 def OnboardingBlockedReason.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OnboardingBlockedReason.ALL.find { |v| v.value == value } end |
.street_address_is_blank_3pl ⇒ Object
22674 22675 22676 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22674 def OnboardingBlockedReason.street_address_is_blank_3pl @@_street_address_is_blank_3pl ||= OnboardingBlockedReason.new('street_address_is_blank_3pl') end |
.street_address_is_po_box_3pl ⇒ Object
22678 22679 22680 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22678 def OnboardingBlockedReason.street_address_is_po_box_3pl @@_street_address_is_po_box_3pl ||= OnboardingBlockedReason.new('street_address_is_po_box_3pl') end |
Instance Method Details
#to_hash ⇒ Object
22690 22691 22692 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22690 def to_hash value end |