Class: Authorization::DevelopmentSupport::AbstractAnalyzer
- Inherits:
-
Object
- Object
- Authorization::DevelopmentSupport::AbstractAnalyzer
- Defined in:
- lib/declarative_authorization/development_support/development_support.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
Instance Method Summary collapse
-
#initialize(engine) ⇒ AbstractAnalyzer
constructor
A new instance of AbstractAnalyzer.
- #roles ⇒ Object
- #rules ⇒ Object
Constructor Details
#initialize(engine) ⇒ AbstractAnalyzer
Returns a new instance of AbstractAnalyzer.
7 8 9 |
# File 'lib/declarative_authorization/development_support/development_support.rb', line 7 def initialize (engine) @engine = engine end |
Instance Attribute Details
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
5 6 7 |
# File 'lib/declarative_authorization/development_support/development_support.rb', line 5 def engine @engine end |
Instance Method Details
#roles ⇒ Object
11 12 13 |
# File 'lib/declarative_authorization/development_support/development_support.rb', line 11 def roles AnalyzerEngine.roles(engine) end |
#rules ⇒ Object
15 16 17 |
# File 'lib/declarative_authorization/development_support/development_support.rb', line 15 def rules roles.collect {|role| role.rules }.flatten end |