Class: Io::Flow::V0::Models::AuthorizationResultActionWait
- Inherits:
-
AuthorizationResultAction
- Object
- AuthorizationResultAction
- Io::Flow::V0::Models::AuthorizationResultActionWait
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Indicates that a response is not ready and that the consumer should poll (or wait) for a response.
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from AuthorizationResultAction
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AuthorizationResultActionWait
constructor
A new instance of AuthorizationResultActionWait.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultAction
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationResultActionWait
Returns a new instance of AuthorizationResultActionWait.
23648 23649 23650 23651 23652 23653 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23648 def initialize(incoming={}) super(:discriminator => AuthorizationResultAction::Types::AUTHORIZATION_RESULT_ACTION_WAIT) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:type], 'AuthorizationResultActionWait') @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::AuthorizationResultActionType) ? x : ::Io::Flow::V0::Models::AuthorizationResultActionType.apply(x)) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
23646 23647 23648 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23646 def type @type end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
23659 23660 23661 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23659 def copy(incoming={}) AuthorizationResultActionWait.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
23663 23664 23665 23666 23667 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23663 def subtype_to_hash { :type => type.value } end |
#to_json ⇒ Object
23655 23656 23657 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23655 def to_json JSON.dump(to_hash) end |