Class: Io::Flow::V0::Models::RatecardLanesImportRequestData
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::RatecardLanesImportRequestData
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#source_url ⇒ Object
readonly
Returns the value of attribute source_url.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ RatecardLanesImportRequestData
constructor
A new instance of RatecardLanesImportRequestData.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ RatecardLanesImportRequestData
Returns a new instance of RatecardLanesImportRequestData.
62431 62432 62433 62434 62435 62436 62437 |
# 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 |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
62429 62430 62431 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62429 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
62429 62430 62431 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62429 def id @id end |
#source_url ⇒ Object (readonly)
Returns the value of attribute source_url.
62429 62430 62431 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62429 def source_url @source_url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
62443 62444 62445 |
# 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 ⇒ Object
62447 62448 62449 62450 62451 62452 62453 |
# 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 ⇒ Object
62439 62440 62441 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62439 def to_json JSON.dump(to_hash) end |