class Io::Flow::V0::Models::UserStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28349 def UserStatus.ALL @@all ||= [UserStatus.pending, UserStatus.active, UserStatus.inactive] end
active()
click to toggle source
Represents an active user account - can authenticate with this account
# File lib/flow_commerce/flow_api_v0_client.rb, line 28359 def UserStatus.active @@_active ||= UserStatus.new('active') end
apply(value)
click to toggle source
Returns the instance of UserStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 28334 def UserStatus.apply(value) if value.instance_of?(UserStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || UserStatus.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of UserStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 28344 def UserStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) UserStatus.ALL.find { |v| v.value == value } end
inactive()
click to toggle source
Represents an inactive user account - can no longer authenticate with this account
# File lib/flow_commerce/flow_api_v0_client.rb, line 28365 def UserStatus.inactive @@_inactive ||= UserStatus.new('inactive') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28329 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
pending()
click to toggle source
Represents a new user account that is pending approval
# File lib/flow_commerce/flow_api_v0_client.rb, line 28354 def UserStatus.pending @@_pending ||= UserStatus.new('pending') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28369 def to_hash value end