lib/purecloud/models/work_item_definition.rb in purecloud-0.18.0 vs lib/purecloud/models/work_item_definition.rb in purecloud-0.25.0

- old
+ new

@@ -8,12 +8,12 @@ attr_accessor :name # The commands that can be performed on this work item attr_accessor :command_categories - # The simple work item form data elements to present for this work item - attr_accessor :data_elements + # The simple work item form containging the control to present for this work item + attr_accessor :form # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -21,22 +21,22 @@ :'name' => :'name', :'command_categories' => :'commandCategories', - :'data_elements' => :'dataElements' + :'form' => :'form' } end # Attribute type mapping. def self.swagger_types { :'id' => :'String', :'name' => :'String', :'command_categories' => :'Array<WorkItemCommandGroup>', - :'data_elements' => :'Array<BackendWorkItemDataElement>' + :'form' => :'Form' } end def initialize(attributes = {}) @@ -58,14 +58,12 @@ if (value = attributes[:'commandCategories']).is_a?(Array) self.command_categories = value end end - if attributes[:'dataElements'] - if (value = attributes[:'dataElements']).is_a?(Array) - self.data_elements = value - end + if attributes[:'form'] + self.form = attributes[:'form'] end end # Check equality by comparing each attribute. @@ -73,20 +71,20 @@ return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && command_categories == o.command_categories && - data_elements == o.data_elements + form == o.form end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [id, name, command_categories, data_elements].hash + [id, name, command_categories, form].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)