Class: Io::Flow::V0::Models::ChannelAuthorization
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ChannelAuthorization
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ChannelAuthorization
constructor
A new instance of ChannelAuthorization.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ChannelAuthorization
Returns a new instance of ChannelAuthorization.
30458 30459 30460 30461 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30458 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
30456 30457 30458 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30456 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
30467 30468 30469 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30467 def copy(incoming={}) ChannelAuthorization.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
30471 30472 30473 30474 30475 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30471 def to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
30463 30464 30465 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30463 def to_json JSON.dump(to_hash) end |