class Io::Flow::V0::Models::InvitationErrorCode

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21703
def InvitationErrorCode.ALL
  @@all ||= [InvitationErrorCode.expired, InvitationErrorCode.invalid_email]
end
apply(value) click to toggle source

Returns the instance of InvitationErrorCode for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 21688
def InvitationErrorCode.apply(value)
  if value.instance_of?(InvitationErrorCode)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || InvitationErrorCode.new(value))
  end
end
expired() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21707
def InvitationErrorCode.expired
  @@_expired ||= InvitationErrorCode.new('expired')
end
from_string(value) click to toggle source

Returns the instance of InvitationErrorCode for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 21698
def InvitationErrorCode.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  InvitationErrorCode.ALL.find { |v| v.value == value }
end
invalid_email() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21711
def InvitationErrorCode.invalid_email
  @@_invalid_email ||= InvitationErrorCode.new('invalid_email')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21683
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21715
def to_hash
  value
end