Class: Io::Flow::V0::Models::ChannelOrganizationAuthorization
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ChannelOrganizationAuthorization
- 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 = {}) ⇒ ChannelOrganizationAuthorization
constructor
A new instance of ChannelOrganizationAuthorization.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ChannelOrganizationAuthorization
Returns a new instance of ChannelOrganizationAuthorization.
35106 35107 35108 35109 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35106 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.
35104 35105 35106 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35104 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
35115 35116 35117 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35115 def copy(incoming={}) ChannelOrganizationAuthorization.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
35119 35120 35121 35122 35123 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35119 def to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
35111 35112 35113 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35111 def to_json JSON.dump(to_hash) end |