Class: Io::Flow::V0::Models::PaymentMethodDataOptionType
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PaymentMethodDataOptionType
- 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 PaymentMethodDataOptionType for this value, creating a new instance for an unknown value.
-
.from_string(value) ⇒ Object
Returns the instance of PaymentMethodDataOptionType for this value, or nil if not found.
-
.ideal_issuer_option ⇒ Object
Describes the process of selecting ideal issuers options.
Instance Method Summary collapse
-
#initialize(value) ⇒ PaymentMethodDataOptionType
constructor
A new instance of PaymentMethodDataOptionType.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ PaymentMethodDataOptionType
Returns a new instance of PaymentMethodDataOptionType.
24347 24348 24349 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24347 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
24345 24346 24347 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24345 def value @value end |
Class Method Details
.ALL ⇒ Object
24367 24368 24369 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24367 def PaymentMethodDataOptionType.ALL @@all ||= [PaymentMethodDataOptionType.ideal_issuer_option] end |
.apply(value) ⇒ Object
Returns the instance of PaymentMethodDataOptionType for this value, creating a new instance for an unknown value
24352 24353 24354 24355 24356 24357 24358 24359 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24352 def PaymentMethodDataOptionType.apply(value) if value.instance_of?(PaymentMethodDataOptionType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PaymentMethodDataOptionType.new(value)) end end |
.from_string(value) ⇒ Object
Returns the instance of PaymentMethodDataOptionType for this value, or nil if not found
24362 24363 24364 24365 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24362 def PaymentMethodDataOptionType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentMethodDataOptionType.ALL.find { |v| v.value == value } end |
.ideal_issuer_option ⇒ Object
Describes the process of selecting ideal issuers options
24372 24373 24374 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24372 def PaymentMethodDataOptionType.ideal_issuer_option @@_ideal_issuer_option ||= PaymentMethodDataOptionType.new('ideal_issuer_option') end |
Instance Method Details
#to_hash ⇒ Object
24376 24377 24378 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24376 def to_hash value end |