Class: Io::Flow::V0::Models::OrderServiceChangeRequestData
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrderServiceChangeRequestData
- 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 = {}) ⇒ OrderServiceChangeRequestData
constructor
A new instance of OrderServiceChangeRequestData.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ OrderServiceChangeRequestData
Returns a new instance of OrderServiceChangeRequestData.
41422 41423 41424 41425 41426 41427 41428 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41422 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :source_url], 'OrderServiceChangeRequestData') @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.
41420 41421 41422 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41420 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
41420 41421 41422 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41420 def id @id end |
#source_url ⇒ Object (readonly)
Returns the value of attribute source_url.
41420 41421 41422 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41420 def source_url @source_url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
41434 41435 41436 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41434 def copy(incoming={}) OrderServiceChangeRequestData.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
41438 41439 41440 41441 41442 41443 41444 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41438 def to_hash { :id => id, :source_url => source_url, :filename => filename } end |
#to_json ⇒ Object
41430 41431 41432 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41430 def to_json JSON.dump(to_hash) end |