Class: Io::Flow::V0::Models::OnboardingApplicationStatus
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OnboardingApplicationStatus
- 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
- .accepted ⇒ Object
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of OnboardingApplicationStatus for this value, creating a new instance for an unknown value.
-
.from_string(value) ⇒ Object
Returns the instance of OnboardingApplicationStatus for this value, or nil if not found.
- .in_progress ⇒ Object
- .on_hold ⇒ Object
- .rejected ⇒ Object
- .to_do ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ OnboardingApplicationStatus
constructor
A new instance of OnboardingApplicationStatus.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ OnboardingApplicationStatus
Returns a new instance of OnboardingApplicationStatus.
22596 22597 22598 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22596 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
22594 22595 22596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22594 def value @value end |
Class Method Details
.accepted ⇒ Object
22636 22637 22638 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22636 def OnboardingApplicationStatus.accepted @@_accepted ||= OnboardingApplicationStatus.new('accepted') end |
.ALL ⇒ Object
22616 22617 22618 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22616 def OnboardingApplicationStatus.ALL @@all ||= [OnboardingApplicationStatus.to_do, OnboardingApplicationStatus.in_progress, OnboardingApplicationStatus.on_hold, OnboardingApplicationStatus.rejected, OnboardingApplicationStatus.accepted] end |
.apply(value) ⇒ Object
Returns the instance of OnboardingApplicationStatus for this value, creating a new instance for an unknown value
22601 22602 22603 22604 22605 22606 22607 22608 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22601 def OnboardingApplicationStatus.apply(value) if value.instance_of?(OnboardingApplicationStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OnboardingApplicationStatus.new(value)) end end |
.from_string(value) ⇒ Object
Returns the instance of OnboardingApplicationStatus for this value, or nil if not found
22611 22612 22613 22614 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22611 def OnboardingApplicationStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OnboardingApplicationStatus.ALL.find { |v| v.value == value } end |
.in_progress ⇒ Object
22624 22625 22626 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22624 def OnboardingApplicationStatus.in_progress @@_in_progress ||= OnboardingApplicationStatus.new('in_progress') end |
.on_hold ⇒ Object
22628 22629 22630 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22628 def OnboardingApplicationStatus.on_hold @@_on_hold ||= OnboardingApplicationStatus.new('on_hold') end |
.rejected ⇒ Object
22632 22633 22634 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22632 def OnboardingApplicationStatus.rejected @@_rejected ||= OnboardingApplicationStatus.new('rejected') end |
.to_do ⇒ Object
22620 22621 22622 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22620 def OnboardingApplicationStatus.to_do @@_to_do ||= OnboardingApplicationStatus.new('to_do') end |
Instance Method Details
#to_hash ⇒ Object
22640 22641 22642 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22640 def to_hash value end |