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.



39772
39773
39774
39775
39776
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39772

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.



39770
39771
39772
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39770

def id
  @id
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



39782
39783
39784
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39782

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

#to_hashObject



39786
39787
39788
39789
39790
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39786

def to_hash
  {
    :id => id
  }
end

#to_jsonObject



39778
39779
39780
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 39778

def to_json
  JSON.dump(to_hash)
end