Module: Policy::Interface::ClassMethods

Defined in:
lib/policy/interface.rb

Overview

Container for the policy class methods

Instance Method Summary collapse

Instance Method Details

#apply(*attributes) ⇒ undefined

Creates and validates the policy object

Parameters:

  • attributes (Array<Symbol>)

    names for the policy object attributes

Returns:

  • (undefined)

Raises:


23
24
25
# File 'lib/policy/interface.rb', line 23

def apply(*attributes)
  new(*attributes).apply
end