Class: Io::Flow::V0::Models::ChannelOrganizationAuthorization

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#placeholderObject (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_hashObject



35119
35120
35121
35122
35123
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35119

def to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



35111
35112
35113
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35111

def to_json
  JSON.dump(to_hash)
end