Class: Authorization::DevelopmentSupport::ChangeSupporter::Test
- Inherits:
-
Object
- Object
- Authorization::DevelopmentSupport::ChangeSupporter::Test
- Defined in:
- lib/declarative_authorization/development_support/change_supporter.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#positive ⇒ Object
readonly
Returns the value of attribute positive.
-
#privilege ⇒ Object
readonly
Returns the value of attribute privilege.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(positive, privilege, options = {}) ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize(positive, privilege, options = {}) ⇒ Test
Returns a new instance of Test.
125 126 127 128 129 |
# File 'lib/declarative_authorization/development_support/change_supporter.rb', line 125 def initialize (positive, privilege, = {}) @positive, @privilege = positive, privilege @context = [:context] @user = [:user] end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
124 125 126 |
# File 'lib/declarative_authorization/development_support/change_supporter.rb', line 124 def context @context end |
#positive ⇒ Object (readonly)
Returns the value of attribute positive.
124 125 126 |
# File 'lib/declarative_authorization/development_support/change_supporter.rb', line 124 def positive @positive end |
#privilege ⇒ Object (readonly)
Returns the value of attribute privilege.
124 125 126 |
# File 'lib/declarative_authorization/development_support/change_supporter.rb', line 124 def privilege @privilege end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
124 125 126 |
# File 'lib/declarative_authorization/development_support/change_supporter.rb', line 124 def user @user end |