Class: Matterhorn::Acl::Ace

Inherits:
Object
  • Object
show all
Defined in:
lib/matterhorn/acl.rb

Overview

Matterhorn::Acl::Ace ===

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject

Returns the value of attribute action.



25
26
27
# File 'lib/matterhorn/acl.rb', line 25

def action
  @action
end

#allowObject

Returns the value of attribute allow.



25
26
27
# File 'lib/matterhorn/acl.rb', line 25

def allow
  @allow
end

#roleObject

Returns the value of attribute role.



25
26
27
# File 'lib/matterhorn/acl.rb', line 25

def role
  @role
end