Class: Authorization::DevelopmentSupport::ChangeSupporter::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/declarative_authorization/development_support/change_supporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @positive, @privilege = positive, privilege
  @context = options[:context]
  @user = options[:user]
end

Instance Attribute Details

#contextObject (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

#positiveObject (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

#privilegeObject (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

#userObject (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