class Io::Flow::V0::Models::DeliveryWindowSummary
Attributes
country[R]
delivery_window[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39391 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:country, :delivery_window], 'DeliveryWindowSummary') @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String) @delivery_window = (x = opts.delete(:delivery_window); x.is_a?(::Io::Flow::V0::Models::DeliveryWindow) ? x : ::Io::Flow::V0::Models::DeliveryWindow.new(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39402 def copy(incoming={}) DeliveryWindowSummary.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 39406 def to_hash { :country => country, :delivery_window => delivery_window.to_hash } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39398 def to_json JSON.dump(to_hash) end