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.
23067 23068 23069 23070 23071 23072 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23067 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') @messages = 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.
23065 23066 23067 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23065 def @messages end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
23078 23079 23080 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23078 def copy(incoming={}) ExternalApiTimeoutReservationError.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
23082 23083 23084 23085 23086 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23082 def subtype_to_hash { :messages => } end |
#to_json ⇒ Object
23074 23075 23076 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23074 def to_json JSON.dump(to_hash) end |