class Io::Flow::V0::Models::RatecardEstimateSummaryForm
Attributes
center_key[R]
destination[R]
origin[R]
service[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 61951 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @origin = (x = opts.delete(:origin); x.nil? ? nil : HttpClient::Preconditions.assert_class('origin', x, String)) @destination = (x = opts.delete(:destination); x.nil? ? nil : HttpClient::Preconditions.assert_class('destination', x, String)) @service = (x = opts.delete(:service); x.nil? ? nil : HttpClient::Preconditions.assert_class('service', x, String)) @center_key = (x = opts.delete(:center_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('center_key', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 61963 def copy(incoming={}) RatecardEstimateSummaryForm.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 61967 def to_hash { :origin => origin, :destination => destination, :service => service, :center_key => center_key } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 61959 def to_json JSON.dump(to_hash) end