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.



36587
36588
36589
36590
36591
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36587

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.



36585
36586
36587
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36585

def id
  @id
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



36597
36598
36599
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36597

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

#to_hashObject



36601
36602
36603
36604
36605
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36601

def to_hash
  {
    :id => id
  }
end

#to_jsonObject



36593
36594
36595
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36593

def to_json
  JSON.dump(to_hash)
end