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.
34832 34833 34834 34835 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34832 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.
34830 34831 34832 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34830 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
34841 34842 34843 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34841 def copy(incoming={}) ChannelAuthorization.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
34845 34846 34847 34848 34849 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34845 def to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
34837 34838 34839 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34837 def to_json JSON.dump(to_hash) end |