Class: RSpec::Authorization::Adapters::Privilege
- Inherits:
-
Object
- Object
- RSpec::Authorization::Adapters::Privilege
- Defined in:
- lib/rspec/authorization/adapters/privilege.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#controller_class ⇒ Object
readonly
Returns the value of attribute controller_class.
-
#negated_actions ⇒ Object
readonly
Returns the value of attribute negated_actions.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(**params) ⇒ Privilege
constructor
A new instance of Privilege.
Constructor Details
#initialize(**params) ⇒ Privilege
Returns a new instance of Privilege.
6 7 8 9 10 11 |
# File 'lib/rspec/authorization/adapters/privilege.rb', line 6 def initialize(**params) @actions = params[:actions] @negated_actions = params[:negated_actions] @controller_class = params[:controller_class] @role = params[:role] end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
4 5 6 |
# File 'lib/rspec/authorization/adapters/privilege.rb', line 4 def actions @actions end |
#controller_class ⇒ Object (readonly)
Returns the value of attribute controller_class.
4 5 6 |
# File 'lib/rspec/authorization/adapters/privilege.rb', line 4 def controller_class @controller_class end |
#negated_actions ⇒ Object (readonly)
Returns the value of attribute negated_actions.
4 5 6 |
# File 'lib/rspec/authorization/adapters/privilege.rb', line 4 def negated_actions @negated_actions end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
4 5 6 |
# File 'lib/rspec/authorization/adapters/privilege.rb', line 4 def role @role end |