Class: Zookeeper::ACLs::ACL
- Inherits:
-
Object
- Object
- Zookeeper::ACLs::ACL
- Defined in:
- lib/zookeeper/acls.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#perms ⇒ Object
readonly
Returns the value of attribute perms.
Instance Method Summary collapse
-
#initialize(hash) ⇒ ACL
constructor
A new instance of ACL.
- #to_hash ⇒ Object
Constructor Details
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
16 17 18 |
# File 'lib/zookeeper/acls.rb', line 16 def id @id end |
#perms ⇒ Object (readonly)
Returns the value of attribute perms.
16 17 18 |
# File 'lib/zookeeper/acls.rb', line 16 def perms @perms end |
Instance Method Details
#to_hash ⇒ Object
23 24 25 |
# File 'lib/zookeeper/acls.rb', line 23 def to_hash { :perms => perms, :id => id.to_hash } end |