Class: CanTango::PermitEngine::Builder::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cantango/permit_engine/builder/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ability) ⇒ Base

creates the factory for the ability note that the ability contains the roles and role groups of the user (or account)

Parameters:

  • the (Permits::Ability)

    ability



10
11
12
# File 'lib/cantango/permit_engine/builder/base.rb', line 10

def initialize ability
  @ability = ability
end

Instance Attribute Details

#abilityObject

Returns the value of attribute ability.



5
6
7
# File 'lib/cantango/permit_engine/builder/base.rb', line 5

def ability
  @ability
end