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:



422
423
424
425
426
# File 'lib/couchbase/management/user_manager.rb', line 422

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

Instance Attribute Details

#display_nameString

Returns:

  • (String)


410
411
412
# File 'lib/couchbase/management/user_manager.rb', line 410

def display_name
  @display_name
end

#groupsArray<String>

Returns:

  • (Array<String>)


413
414
415
# File 'lib/couchbase/management/user_manager.rb', line 413

def groups
  @groups
end

#passwordString

Returns:

  • (String)


419
420
421
# File 'lib/couchbase/management/user_manager.rb', line 419

def password
  @password
end

#rolesArray<Role>

Returns:



416
417
418
# File 'lib/couchbase/management/user_manager.rb', line 416

def roles
  @roles
end

#usernameString

Returns:

  • (String)


407
408
409
# File 'lib/couchbase/management/user_manager.rb', line 407

def username
  @username
end