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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::Debug

#debug

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



14
15
16
# File 'lib/cantango/permit_engine/builder/base.rb', line 14

def initialize ability
  @ability = ability
end

Instance Attribute Details

#abilityObject

Returns the value of attribute ability.



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

def ability
  @ability
end