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.
32166 32167 32168 32169 32170 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32166 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.
32164 32165 32166 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32164 def channel_id @channel_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
32176 32177 32178 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32176 def copy(incoming={}) ChannelAuthorizationForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
32180 32181 32182 32183 32184 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32180 def to_hash { :channel_id => channel_id } end |
#to_json ⇒ Object
32172 32173 32174 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32172 def to_json JSON.dump(to_hash) end |