Class: CanTango::PermissionEngine::Selector::AccountTypes

Inherits:
Base
  • Object
show all
Defined in:
lib/cantango/permission_engine/selector/account_types.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#subject

Instance Method Summary collapse

Methods inherited from Base

#select

Constructor Details

#initialize(subject) ⇒ AccountTypes

Returns a new instance of AccountTypes.



7
8
9
# File 'lib/cantango/permission_engine/selector/account_types.rb', line 7

def initialize subject
  @account_type = subject..class.to_s.underscore
end

Instance Attribute Details

#account_typeObject (readonly)

Returns the value of attribute account_type.



5
6
7
# File 'lib/cantango/permission_engine/selector/account_types.rb', line 5

def 
  @account_type
end