Class: Matterhorn::Acl::Ace
- Inherits:
-
Object
- Object
- Matterhorn::Acl::Ace
- Defined in:
- lib/matterhorn/acl.rb
Overview
Matterhorn::Acl::Ace ===
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#allow ⇒ Object
Returns the value of attribute allow.
-
#role ⇒ Object
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role = nil, action = nil, allow = true) ⇒ Ace
constructor
A new instance of Ace.
Constructor Details
#initialize(role = nil, action = nil, allow = true) ⇒ Ace
Returns a new instance of Ace.
27 28 29 30 31 |
# File 'lib/matterhorn/acl.rb', line 27 def initialize(role = nil, action = nil, allow = true) @role = role @action = action @allow = allow end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
25 26 27 |
# File 'lib/matterhorn/acl.rb', line 25 def action @action end |
#allow ⇒ Object
Returns the value of attribute allow.
25 26 27 |
# File 'lib/matterhorn/acl.rb', line 25 def allow @allow end |
#role ⇒ Object
Returns the value of attribute role.
25 26 27 |
# File 'lib/matterhorn/acl.rb', line 25 def role @role end |