Class: Io::Flow::V0::Models::InlineWindowViewportSize
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::InlineWindowViewportSize
- 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
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of InlineWindowViewportSize for this value, creating a new instance for an unknown value.
-
.from_string(value) ⇒ Object
Returns the instance of InlineWindowViewportSize for this value, or nil if not found.
-
.fullscreen ⇒ Object
Full Screen.
-
.responsive ⇒ Object
Responsive layout, fits into whatever size the container is.
-
.small ⇒ Object
600x400.
-
.x_small ⇒ Object
500x600.
-
.xx_small ⇒ Object
390x400.
-
.xxx_small ⇒ Object
250x400.
Instance Method Summary collapse
-
#initialize(value) ⇒ InlineWindowViewportSize
constructor
A new instance of InlineWindowViewportSize.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ InlineWindowViewportSize
Returns a new instance of InlineWindowViewportSize.
21535 21536 21537 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21535 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
21533 21534 21535 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21533 def value @value end |
Class Method Details
.ALL ⇒ Object
21555 21556 21557 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21555 def InlineWindowViewportSize.ALL @@all ||= [InlineWindowViewportSize.xxx_small, InlineWindowViewportSize.xx_small, InlineWindowViewportSize.x_small, InlineWindowViewportSize.small, InlineWindowViewportSize.fullscreen, InlineWindowViewportSize.responsive] end |
.apply(value) ⇒ Object
Returns the instance of InlineWindowViewportSize for this value, creating a new instance for an unknown value
21540 21541 21542 21543 21544 21545 21546 21547 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21540 def InlineWindowViewportSize.apply(value) if value.instance_of?(InlineWindowViewportSize) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || InlineWindowViewportSize.new(value)) end end |
.from_string(value) ⇒ Object
Returns the instance of InlineWindowViewportSize for this value, or nil if not found
21550 21551 21552 21553 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21550 def InlineWindowViewportSize.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) InlineWindowViewportSize.ALL.find { |v| v.value == value } end |
.fullscreen ⇒ Object
Full Screen.
21580 21581 21582 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21580 def InlineWindowViewportSize.fullscreen @@_fullscreen ||= InlineWindowViewportSize.new('fullscreen') end |
.responsive ⇒ Object
Responsive layout, fits into whatever size the container is.
21585 21586 21587 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21585 def InlineWindowViewportSize.responsive @@_responsive ||= InlineWindowViewportSize.new('responsive') end |
.small ⇒ Object
600x400
21575 21576 21577 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21575 def InlineWindowViewportSize.small @@_small ||= InlineWindowViewportSize.new('small') end |
.x_small ⇒ Object
500x600
21570 21571 21572 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21570 def InlineWindowViewportSize.x_small @@_x_small ||= InlineWindowViewportSize.new('x_small') end |
.xx_small ⇒ Object
390x400
21565 21566 21567 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21565 def InlineWindowViewportSize.xx_small @@_xx_small ||= InlineWindowViewportSize.new('xx_small') end |
.xxx_small ⇒ Object
250x400
21560 21561 21562 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21560 def InlineWindowViewportSize.xxx_small @@_xxx_small ||= InlineWindowViewportSize.new('xxx_small') end |
Instance Method Details
#to_hash ⇒ Object
21589 21590 21591 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21589 def to_hash value end |