Class: Io::Flow::V0::Models::OrganizationDefaultConfigurationsForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrganizationDefaultConfigurationsForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrganizationDefaultConfigurationsForm
constructor
A new instance of OrganizationDefaultConfigurationsForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ OrganizationDefaultConfigurationsForm
Returns a new instance of OrganizationDefaultConfigurationsForm.
39546 39547 39548 39549 39550 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39546 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id], 'OrganizationDefaultConfigurationsForm') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
39544 39545 39546 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39544 def id @id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
39556 39557 39558 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39556 def copy(incoming={}) OrganizationDefaultConfigurationsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
39560 39561 39562 39563 39564 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39560 def to_hash { :id => id } end |
#to_json ⇒ Object
39552 39553 39554 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39552 def to_json JSON.dump(to_hash) end |