Class: Io::Flow::V0::Models::ChannelOrganizationAuthorizationForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ChannelOrganizationAuthorizationForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
readonly
Returns the value of attribute channel_id.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ChannelOrganizationAuthorizationForm
constructor
A new instance of ChannelOrganizationAuthorizationForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ChannelOrganizationAuthorizationForm
Returns a new instance of ChannelOrganizationAuthorizationForm.
30667 30668 30669 30670 30671 30672 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30667 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:channel_id, :organization_id], 'ChannelOrganizationAuthorizationForm') @channel_id = HttpClient::Preconditions.assert_class('channel_id', opts.delete(:channel_id), String) @organization_id = HttpClient::Preconditions.assert_class('organization_id', opts.delete(:organization_id), String) end |
Instance Attribute Details
#channel_id ⇒ Object (readonly)
Returns the value of attribute channel_id.
30665 30666 30667 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30665 def channel_id @channel_id end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
30665 30666 30667 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30665 def organization_id @organization_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
30678 30679 30680 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30678 def copy(incoming={}) ChannelOrganizationAuthorizationForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
30682 30683 30684 30685 30686 30687 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30682 def to_hash { :channel_id => channel_id, :organization_id => organization_id } end |
#to_json ⇒ Object
30674 30675 30676 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30674 def to_json JSON.dump(to_hash) end |