Class: RSpec::Authorization::Adapters::Privilege

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/authorization/adapters/privilege.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**params) ⇒ 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

#actionsObject (readonly)

Returns the value of attribute actions


4
5
6
# File 'lib/rspec/authorization/adapters/privilege.rb', line 4

def actions
  @actions
end

#controller_classObject (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_actionsObject (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

#roleObject (readonly)

Returns the value of attribute role


4
5
6
# File 'lib/rspec/authorization/adapters/privilege.rb', line 4

def role
  @role
end