Class: Couchbase::Management::User

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/management/user_manager.rb

Direct Known Subclasses

UserAndMetadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ User

Returns a new instance of User.

Yield Parameters:



401
402
403
404
405
# File 'lib/couchbase/management/user_manager.rb', line 401

def initialize
  @groups = []
  @roles = []
  yield self if block_given?
end

Instance Attribute Details

#display_nameString

Returns:

  • (String)


389
390
391
# File 'lib/couchbase/management/user_manager.rb', line 389

def display_name
  @display_name
end

#groupsArray<String>

Returns:

  • (Array<String>)


392
393
394
# File 'lib/couchbase/management/user_manager.rb', line 392

def groups
  @groups
end

#passwordString

Returns:

  • (String)


398
399
400
# File 'lib/couchbase/management/user_manager.rb', line 398

def password
  @password
end

#rolesArray<Role>

Returns:



395
396
397
# File 'lib/couchbase/management/user_manager.rb', line 395

def roles
  @roles
end

#usernameString

Returns:

  • (String)


386
387
388
# File 'lib/couchbase/management/user_manager.rb', line 386

def username
  @username
end