lib/purecloud/models/user_me.rb in purecloud-0.32.1 vs lib/purecloud/models/user_me.rb in purecloud-0.33.1
- old
+ new
@@ -50,10 +50,13 @@
attr_accessor :station
# Roles and permissions assigned to the user
attr_accessor :authorization
+ # Details about the organization the user is a member of
+ attr_accessor :organization
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -95,10 +98,12 @@
:'station' => :'station',
:'authorization' => :'authorization',
+ :'organization' => :'organization',
+
:'self_uri' => :'selfUri'
}
end
@@ -122,10 +127,11 @@
:'conversation_summary' => :'UserConversationSummary',
:'out_of_office' => :'OutOfOffice',
:'geolocation' => :'Geolocation',
:'station' => :'UserStations',
:'authorization' => :'UserAuthorization',
+ :'organization' => :'Organization',
:'self_uri' => :'String'
}
end
@@ -216,10 +222,14 @@
if attributes[:'authorization']
self.authorization = attributes[:'authorization']
end
+ if attributes[:'organization']
+ self.organization = attributes[:'organization']
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -254,20 +264,21 @@
conversation_summary == o.conversation_summary &&
out_of_office == o.out_of_office &&
geolocation == o.geolocation &&
station == o.station &&
authorization == o.authorization &&
+ organization == o.organization &&
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, organization, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)