lib/purecloudplatformclientv2/models/agent.rb in purecloudplatformclientv2-58.0.1 vs lib/purecloudplatformclientv2/models/agent.rb in purecloudplatformclientv2-59.0.0
- old
+ new
@@ -16,33 +16,28 @@
require 'date'
module PureCloud
class Agent
- attr_accessor :id
+ # The current stage for this agent
+ attr_accessor :stage
- attr_accessor :self_uri
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'id' => :'id',
+ :'stage' => :'stage'
- :'self_uri' => :'selfUri'
-
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'id' => :'String',
+ :'stage' => :'String'
- :'self_uri' => :'String'
-
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -51,28 +46,19 @@
# convert string to symbol for hash key
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
- if attributes.has_key?(:'id')
+ if attributes.has_key?(:'stage')
- self.id = attributes[:'id']
+ self.stage = attributes[:'stage']
end
- if attributes.has_key?(:'selfUri')
-
-
- self.self_uri = attributes[:'selfUri']
-
-
- end
-
-
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properies with the reasons
def list_invalid_properties
@@ -88,34 +74,24 @@
-
-
-
-
end
-
-
-
-
-
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- id == o.id &&
- self_uri == o.self_uri
+ stage == o.stage
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -123,10 +99,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, self_uri].hash
+ [stage].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)