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



31199
31200
31201
31202
31203
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31199

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.



31197
31198
31199
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31197

def id
  @id
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



31209
31210
31211
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31209

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

#to_hashObject



31213
31214
31215
31216
31217
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31213

def to_hash
  {
    :id => id
  }
end

#to_jsonObject



31205
31206
31207
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31205

def to_json
  JSON.dump(to_hash)
end