Class: Gatekeeper::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gatekeeper/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
# File 'lib/gatekeeper/configuration.rb', line 9

def initialize
  @bypass_allowed_info = nil
  @response_ignored_variables = []
end

Instance Attribute Details

#bypass_allowed_infoProc

Returns a block to return bypess all info allowances (ex. for an admin user).

Returns:

  • (Proc)

    a block to return bypess all info allowances (ex. for an admin user).



5
6
7
# File 'lib/gatekeeper/configuration.rb', line 5

def bypass_allowed_info
  @bypass_allowed_info
end

#response_ignored_variablesArray<Symbol>

Returns a list of ignored variables in controller response.

Returns:

  • (Array<Symbol>)

    a list of ignored variables in controller response.



7
8
9
# File 'lib/gatekeeper/configuration.rb', line 7

def response_ignored_variables
  @response_ignored_variables
end