Class: Io::Flow::V0::Models::BridgeManifestForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::BridgeManifestForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#order_numbers ⇒ Object
readonly
Returns the value of attribute order_numbers.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ BridgeManifestForm
constructor
A new instance of BridgeManifestForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ BridgeManifestForm
Returns a new instance of BridgeManifestForm.
32480 32481 32482 32483 32484 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32480 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:order_numbers], 'BridgeManifestForm') @order_numbers = HttpClient::Preconditions.assert_class('order_numbers', opts.delete(:order_numbers), Array).map { |v| HttpClient::Preconditions.assert_class('order_numbers', v, String) } end |
Instance Attribute Details
#order_numbers ⇒ Object (readonly)
Returns the value of attribute order_numbers.
32478 32479 32480 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32478 def order_numbers @order_numbers end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
32490 32491 32492 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32490 def copy(incoming={}) BridgeManifestForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
32494 32495 32496 32497 32498 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32494 def to_hash { :order_numbers => order_numbers } end |
#to_json ⇒ Object
32486 32487 32488 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32486 def to_json JSON.dump(to_hash) end |