Class: Io::Flow::V0::Models::ExperienceConfigurationReference

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

Returns a new instance of ExperienceConfigurationReference.



41591
41592
41593
41594
41595
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41591

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



41589
41590
41591
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41589

def id
  @id
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



41601
41602
41603
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41601

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

#to_hashObject



41605
41606
41607
41608
41609
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41605

def to_hash
  {
    :id => id
  }
end

#to_jsonObject



41597
41598
41599
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41597

def to_json
  JSON.dump(to_hash)
end