Class: YaAcl::Result
- Inherits:
-
Object
- Object
- YaAcl::Result
- Defined in:
- lib/ya_acl/result.rb
Instance Attribute Summary collapse
-
#assert ⇒ Object
readonly
Returns the value of attribute assert.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = true, role = nil, assert = nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(status = true, role = nil, assert = nil) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 |
# File 'lib/ya_acl/result.rb', line 5 def initialize(status = true, role = nil, assert = nil) @status = status @assert = assert @role = role end |
Instance Attribute Details
#assert ⇒ Object (readonly)
Returns the value of attribute assert.
3 4 5 |
# File 'lib/ya_acl/result.rb', line 3 def assert @assert end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
3 4 5 |
# File 'lib/ya_acl/result.rb', line 3 def role @role end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/ya_acl/result.rb', line 3 def status @status end |