Class: Io::Flow::V0::Models::OnboardingApplicationStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#valueObject (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

.acceptedObject



22636
22637
22638
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22636

def OnboardingApplicationStatus.accepted
  @@_accepted ||= OnboardingApplicationStatus.new('accepted')
end

.ALLObject



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_progressObject



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_holdObject



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

.rejectedObject



22632
22633
22634
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22632

def OnboardingApplicationStatus.rejected
  @@_rejected ||= OnboardingApplicationStatus.new('rejected')
end

.to_doObject



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_hashObject



22640
22641
22642
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22640

def to_hash
  value
end