Class: Io::Flow::V0::Models::ExternalApiTimeoutReservationError
- Inherits:
-
ReservationError
- Object
- ReservationError
- Io::Flow::V0::Models::ExternalApiTimeoutReservationError
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Attributes inherited from ReservationError
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExternalApiTimeoutReservationError
constructor
A new instance of ExternalApiTimeoutReservationError.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ReservationError
Constructor Details
#initialize(incoming = {}) ⇒ ExternalApiTimeoutReservationError
Returns a new instance of ExternalApiTimeoutReservationError.
33582 33583 33584 33585 33586 33587 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33582 def initialize(incoming={}) super(:code => ReservationError::Types::EXTERNAL_API_TIMEOUT_RESERVATION_ERROR) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:messages], 'ExternalApiTimeoutReservationError') = HttpClient::Preconditions.assert_class('messages', opts.delete(:messages), Array).map { |v| HttpClient::Preconditions.assert_class('messages', v, String) } end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
33580 33581 33582 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33580 def end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
33593 33594 33595 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33593 def copy(incoming={}) ExternalApiTimeoutReservationError.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
33597 33598 33599 33600 33601 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33597 def subtype_to_hash { :messages => } end |
#to_json ⇒ Object
33589 33590 33591 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33589 def to_json JSON.dump(to_hash) end |