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.
420 421 422 423 424 |
# File 'lib/couchbase/management/user_manager.rb', line 420 def initialize @groups = [] @roles = [] yield self if block_given? end |
Instance Attribute Details
#display_name ⇒ String
408 409 410 |
# File 'lib/couchbase/management/user_manager.rb', line 408 def display_name @display_name end |
#groups ⇒ Array<String>
411 412 413 |
# File 'lib/couchbase/management/user_manager.rb', line 411 def groups @groups end |
#password ⇒ String
417 418 419 |
# File 'lib/couchbase/management/user_manager.rb', line 417 def password @password end |
#roles ⇒ Array<Role>
414 415 416 |
# File 'lib/couchbase/management/user_manager.rb', line 414 def roles @roles end |
#username ⇒ String
405 406 407 |
# File 'lib/couchbase/management/user_manager.rb', line 405 def username @username end |