lib/purecloud/models/data_item.rb in purecloud-0.17.0 vs lib/purecloud/models/data_item.rb in purecloud-0.18.0
- old
+ new
@@ -1,34 +1,38 @@
require 'date'
module PureCloud
+ # Data elements associated with a history event
class DataItem
- attr_accessor :data_item_id
+ # The name of the data element associated with a history event.
+ attr_accessor :parameter_name
- attr_accessor :value
+ # The type of the data element associated with a history event.
+ attr_accessor :parameter_type
- attr_accessor :type
+ # The values of the data element associated with a history event.
+ attr_accessor :parameter_values
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'data_item_id' => :'dataItemId',
+ :'parameter_name' => :'parameterName',
- :'value' => :'value',
+ :'parameter_type' => :'parameterType',
- :'type' => :'type'
+ :'parameter_values' => :'parameterValues'
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'data_item_id' => :'String',
- :'value' => :'String',
- :'type' => :'String'
+ :'parameter_name' => :'String',
+ :'parameter_type' => :'String',
+ :'parameter_values' => :'Value'
}
end
def initialize(attributes = {})
@@ -36,40 +40,40 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
- if attributes[:'dataItemId']
- self.data_item_id = attributes[:'dataItemId']
+ if attributes[:'parameterName']
+ self.parameter_name = attributes[:'parameterName']
end
- if attributes[:'value']
- self.value = attributes[:'value']
+ if attributes[:'parameterType']
+ self.parameter_type = attributes[:'parameterType']
end
- if attributes[:'type']
- self.type = attributes[:'type']
+ if attributes[:'parameterValues']
+ self.parameter_values = attributes[:'parameterValues']
end
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- data_item_id == o.data_item_id &&
- value == o.value &&
- type == o.type
+ parameter_name == o.parameter_name &&
+ parameter_type == o.parameter_type &&
+ parameter_values == o.parameter_values
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [data_item_id, value, type].hash
+ [parameter_name, parameter_type, parameter_values].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)