Class: Drillbit::Authorizers::Parameters::Inclusions

Inherits:
Drillbit::Authorizers::Parameters show all
Defined in:
lib/drillbit/authorizers/parameters/inclusions.rb

Instance Attribute Summary collapse

Attributes inherited from Drillbit::Authorizers::Parameters

#action, #params, #token, #user

Instance Method Summary collapse

Methods inherited from Drillbit::Authorizers::Parameters

#initialize

Constructor Details

This class inherits a constructor from Drillbit::Authorizers::Parameters

Instance Attribute Details

#authorized_inclusionsObject



19
20
21
# File 'lib/drillbit/authorizers/parameters/inclusions.rb', line 19

def authorized_inclusions
  @authorized_inclusions ||= []
end

Instance Method Details

#callObject



12
13
14
15
16
17
# File 'lib/drillbit/authorizers/parameters/inclusions.rb', line 12

def call
  fail Errors::UnpermittedInclusions.new(inclusions: requested_inclusions) \
    if inclusion_differences.any?

  requested_inclusions
end