class Io::Flow::V0::Models::ThreedsTwoChallengeViewport
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27544 def ThreedsTwoChallengeViewport.ALL @@all ||= [ThreedsTwoChallengeViewport.xxx_small, ThreedsTwoChallengeViewport.xx_small, ThreedsTwoChallengeViewport.x_small, ThreedsTwoChallengeViewport.small, ThreedsTwoChallengeViewport.fullscreen] end
apply(value)
click to toggle source
Returns the instance of ThreedsTwoChallengeViewport
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 27529 def ThreedsTwoChallengeViewport.apply(value) if value.instance_of?(ThreedsTwoChallengeViewport) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ThreedsTwoChallengeViewport.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of ThreedsTwoChallengeViewport
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 27539 def ThreedsTwoChallengeViewport.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ThreedsTwoChallengeViewport.ALL.find { |v| v.value == value } end
fullscreen()
click to toggle source
Full Screen. Not recommended for mobile devices at this time.
# File lib/flow_commerce/flow_api_v0_client.rb, line 27569 def ThreedsTwoChallengeViewport.fullscreen @@_fullscreen ||= ThreedsTwoChallengeViewport.new('fullscreen') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27524 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
small()
click to toggle source
600x400
# File lib/flow_commerce/flow_api_v0_client.rb, line 27564 def ThreedsTwoChallengeViewport.small @@_small ||= ThreedsTwoChallengeViewport.new('small') end
x_small()
click to toggle source
500x600
# File lib/flow_commerce/flow_api_v0_client.rb, line 27559 def ThreedsTwoChallengeViewport.x_small @@_x_small ||= ThreedsTwoChallengeViewport.new('x_small') end
xx_small()
click to toggle source
390x400
# File lib/flow_commerce/flow_api_v0_client.rb, line 27554 def ThreedsTwoChallengeViewport.xx_small @@_xx_small ||= ThreedsTwoChallengeViewport.new('xx_small') end
xxx_small()
click to toggle source
250x400
# File lib/flow_commerce/flow_api_v0_client.rb, line 27549 def ThreedsTwoChallengeViewport.xxx_small @@_xxx_small ||= ThreedsTwoChallengeViewport.new('xxx_small') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27573 def to_hash value end