Class: Couchbase::Management::User
- Inherits:
-
Object
- Object
- Couchbase::Management::User
- Defined in:
- lib/couchbase/management/user_manager.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #display_name ⇒ String
- #groups ⇒ Array<String>
- #password ⇒ String
- #roles ⇒ Array<Role>
- #username ⇒ String
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize {|self| ... } ⇒ User
Returns a new instance of User.
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_name ⇒ String
410 411 412 |
# File 'lib/couchbase/management/user_manager.rb', line 410 def display_name @display_name end |
#groups ⇒ Array<String>
413 414 415 |
# File 'lib/couchbase/management/user_manager.rb', line 413 def groups @groups end |
#password ⇒ String
419 420 421 |
# File 'lib/couchbase/management/user_manager.rb', line 419 def password @password end |
#roles ⇒ Array<Role>
416 417 418 |
# File 'lib/couchbase/management/user_manager.rb', line 416 def roles @roles end |
#username ⇒ String
407 408 409 |
# File 'lib/couchbase/management/user_manager.rb', line 407 def username @username end |