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.

Yields:

  • (_self)

Yield Parameters:



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

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

Instance Attribute Details

#display_nameString

Returns:

  • (String)


376
377
378
# File 'lib/couchbase/management/user_manager.rb', line 376

def display_name
  @display_name
end

#groupsArray<String>

Returns:

  • (Array<String>)


379
380
381
# File 'lib/couchbase/management/user_manager.rb', line 379

def groups
  @groups
end

#passwordString

Returns:

  • (String)


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

def password
  @password
end

#rolesArray<Role>

Returns:



382
383
384
# File 'lib/couchbase/management/user_manager.rb', line 382

def roles
  @roles
end

#usernameString

Returns:

  • (String)


373
374
375
# File 'lib/couchbase/management/user_manager.rb', line 373

def username
  @username
end