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
19014 19015 19016 19017 19018 19019 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 19014 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.
19012 19013 19014 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 19012 def @messages end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
19025 19026 19027 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 19025 def copy(incoming={}) ExternalApiTimeoutReservationError.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
19029 19030 19031 19032 19033 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 19029 def subtype_to_hash { :messages => } end |
#to_json ⇒ Object
19021 19022 19023 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 19021 def to_json JSON.dump(to_hash) end |