Class: Io::Flow::V0::Models::BridgeManifestForm

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numbersObject (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_hashObject



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_jsonObject



32486
32487
32488
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32486

def to_json
  JSON.dump(to_hash)
end