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.
55226 55227 55228 55229 55230 55231 55232 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55226 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.
55224 55225 55226 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55224 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
55224 55225 55226 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55224 def id @id end |
#source_url ⇒ Object (readonly)
Returns the value of attribute source_url.
55224 55225 55226 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55224 def source_url @source_url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
55238 55239 55240 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55238 def copy(incoming={}) RatecardLanesImportRequestData.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
55242 55243 55244 55245 55246 55247 55248 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55242 def to_hash { :id => id, :source_url => source_url, :filename => filename } end |
#to_json ⇒ Object
55234 55235 55236 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55234 def to_json JSON.dump(to_hash) end |