Class: Io::Flow::V0::Models::OrganizationConfigurationReference

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 = {}) ⇒ OrganizationConfigurationReference

Returns a new instance of OrganizationConfigurationReference.



41138
41139
41140
41141
41142
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41138

def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:id], 'OrganizationConfigurationReference')
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



41136
41137
41138
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41136

def id
  @id
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



41148
41149
41150
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41148

def copy(incoming={})
  OrganizationConfigurationReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#to_hashObject



41152
41153
41154
41155
41156
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41152

def to_hash
  {
    :id => id
  }
end

#to_jsonObject



41144
41145
41146
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41144

def to_json
  JSON.dump(to_hash)
end