lib/purecloud/models/data_item.rb in purecloud-0.25.0 vs lib/purecloud/models/data_item.rb in purecloud-0.26.0

- old
+ new

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