class Io::Flow::V0::Models::RatecardLanesImportRequestData
Attributes
filename[R]
id[R]
source_url[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 62431 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :source_url], 'RatecardLanesImportRequestData') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @source_url = HttpClient::Preconditions.assert_class('source_url', opts.delete(:source_url), String) @filename = (x = opts.delete(:filename); x.nil? ? nil : HttpClient::Preconditions.assert_class('filename', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 62443 def copy(incoming={}) RatecardLanesImportRequestData.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 62447 def to_hash { :id => id, :source_url => source_url, :filename => filename } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 62439 def to_json JSON.dump(to_hash) end