Class: Io::Flow::V0::Models::PartnerCenterForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PartnerCenterForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#partner_id ⇒ Object
readonly
Returns the value of attribute partner_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PartnerCenterForm
constructor
A new instance of PartnerCenterForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ PartnerCenterForm
Returns a new instance of PartnerCenterForm.
26902 26903 26904 26905 26906 26907 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26902 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:partner_id], 'PartnerCenterForm') @partner_id = HttpClient::Preconditions.assert_class('partner_id', opts.delete(:partner_id), String) @number = (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, String)) end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
26900 26901 26902 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26900 def number @number end |
#partner_id ⇒ Object (readonly)
Returns the value of attribute partner_id.
26900 26901 26902 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26900 def partner_id @partner_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
26913 26914 26915 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26913 def copy(incoming={}) PartnerCenterForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
26917 26918 26919 26920 26921 26922 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26917 def to_hash { :partner_id => partner_id, :number => number } end |
#to_json ⇒ Object
26909 26910 26911 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26909 def to_json JSON.dump(to_hash) end |