Class: Drillbit::Authorizers::Parameters::Inclusions
- Inherits:
-
Drillbit::Authorizers::Parameters
- Object
- Drillbit::Authorizers::Parameters
- Drillbit::Authorizers::Parameters::Inclusions
- 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
Constructor Details
This class inherits a constructor from Drillbit::Authorizers::Parameters
Instance Attribute Details
#authorized_inclusions ⇒ Object
19 20 21 |
# File 'lib/drillbit/authorizers/parameters/inclusions.rb', line 19 def @authorized_inclusions ||= [] end |
Instance Method Details
#call ⇒ Object
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 |