Class: Io::Flow::V0::Models::ChannelAuthorizationForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ChannelAuthorizationForm
- 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.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ChannelAuthorizationForm
constructor
A new instance of ChannelAuthorizationForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ChannelAuthorizationForm
Returns a new instance of ChannelAuthorizationForm.
34857 34858 34859 34860 34861 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34857 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:channel_id], 'ChannelAuthorizationForm') @channel_id = HttpClient::Preconditions.assert_class('channel_id', opts.delete(:channel_id), String) end |
Instance Attribute Details
#channel_id ⇒ Object (readonly)
Returns the value of attribute channel_id.
34855 34856 34857 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34855 def channel_id @channel_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
34867 34868 34869 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34867 def copy(incoming={}) ChannelAuthorizationForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
34871 34872 34873 34874 34875 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34871 def to_hash { :channel_id => channel_id } end |
#to_json ⇒ Object
34863 34864 34865 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34863 def to_json JSON.dump(to_hash) end |