class Io::Flow::V0::Models::ManifestForm

Attributes

service[R]
tracking_numbers[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49502
def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:tracking_numbers], 'ManifestForm')
  @tracking_numbers = HttpClient::Preconditions.assert_class('tracking_numbers', opts.delete(:tracking_numbers), Array).map { |v| HttpClient::Preconditions.assert_class('tracking_numbers', v, String) }
  @service = (x = opts.delete(:service); x.nil? ? nil : HttpClient::Preconditions.assert_class('service', x, String))
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49513
def copy(incoming={})
  ManifestForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49517
def to_hash
  {
    :tracking_numbers => tracking_numbers,
    :service => service
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49509
def to_json
  JSON.dump(to_hash)
end