Class: Couchbase::Management::User
- Inherits:
-
Object
- Object
- Couchbase::Management::User
- Defined in:
- lib/couchbase/management/user_manager.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/management/user_manager.rb more...
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.
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_name ⇒ String
389 390 391 |
# File 'lib/couchbase/management/user_manager.rb', line 389 def display_name @display_name end |
#groups ⇒ Array<String>
392 393 394 |
# File 'lib/couchbase/management/user_manager.rb', line 392 def groups @groups end |
#password ⇒ String
398 399 400 |
# File 'lib/couchbase/management/user_manager.rb', line 398 def password @password end |
#roles ⇒ Array<Role>
395 396 397 |
# File 'lib/couchbase/management/user_manager.rb', line 395 def roles @roles end |
#username ⇒ String
386 387 388 |
# File 'lib/couchbase/management/user_manager.rb', line 386 def username @username end |