class Io::Flow::V0::Models::OrderBuilderSelectionsForm

Attributes

selections[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 51522
def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:selections], 'OrderBuilderSelectionsForm')
  @selections = HttpClient::Preconditions.assert_class('selections', opts.delete(:selections), Array).map { |v| HttpClient::Preconditions.assert_class('selections', v, String) }
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 51532
def copy(incoming={})
  OrderBuilderSelectionsForm.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 51536
def to_hash
  {
    :selections => selections
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 51528
def to_json
  JSON.dump(to_hash)
end