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
33218 33219 33220 33221 33222 33223 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33218 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.
33216 33217 33218 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33216 def end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
33229 33230 33231 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33229 def copy(incoming={}) ExternalApiTimeoutReservationError.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
33233 33234 33235 33236 33237 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33233 def subtype_to_hash { :messages => } end |
#to_json ⇒ Object
33225 33226 33227 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33225 def to_json JSON.dump(to_hash) end |