lib/purecloud/models/user.rb in purecloud-0.48.1 vs lib/purecloud/models/user.rb in purecloud-0.49.1

- old
+ new

@@ -66,10 +66,13 @@ attr_accessor :station # Roles and permissions assigned to the user attr_accessor :authorization + # Skills possessed by the user + attr_accessor :profile_skills + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -111,10 +114,12 @@ :'station' => :'station', :'authorization' => :'authorization', + :'profile_skills' => :'profileSkills', + :'self_uri' => :'selfUri' } end @@ -138,10 +143,11 @@ :'conversation_summary' => :'UserConversationSummary', :'out_of_office' => :'OutOfOffice', :'geolocation' => :'Geolocation', :'station' => :'UserStations', :'authorization' => :'UserAuthorization', + :'profile_skills' => :'Array<String>', :'self_uri' => :'String' } end @@ -232,10 +238,16 @@ if attributes[:'authorization'] self.authorization = attributes[:'authorization'] end + if attributes[:'profileSkills'] + if (value = attributes[:'profileSkills']).is_a?(Array) + self.profile_skills = value + end + end + if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end @@ -270,20 +282,21 @@ conversation_summary == o.conversation_summary && out_of_office == o.out_of_office && geolocation == o.geolocation && station == o.station && authorization == o.authorization && + profile_skills == o.profile_skills && self_uri == o.self_uri end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, self_uri].hash + [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)