lib/groupdocs/user.rb in groupdocs-1.5.7 vs lib/groupdocs/user.rb in groupdocs-1.5.8
- old
+ new
@@ -47,10 +47,11 @@
def self.update_account!(user, access = {})
user.is_a?(GroupDocs::User) or raise ArgumentError,
"User should be GroupDocs::User object, received: #{user.inspect}"
data = user.to_hash
+
json = Api::Request.new do |request|
request[:access] = access
request[:method] = :PUT
request[:path] = "/mgmt/{{client_id}}/account/users/#{user.nickname}"
request[:request_body] = data
@@ -373,14 +374,21 @@
attr_accessor :signed_up_on
# @attr [Integer] color
attr_accessor :color
# @attr [String] customEmailMessage
attr_accessor :customEmailMessage
+ # @attr [Array] roles
+ attr_accessor :roles
+ # added in release 1.5.8
+ # @attr [List] avatar
+ attr_accessor :avatar
+
# Human-readable accessors
alias_accessor :first_name, :firstname
alias_accessor :last_name, :lastname
alias_accessor :custom_email_message, :customEmailMessage
+
#
# Converts access rights to human-readable format flag.
# @return [Array<Symbol>]
#