Class: Qa::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorized_reload_tokenObject



22
23
24
# File 'lib/qa/configuration.rb', line 22

def authorized_reload_token
  @authorized_reload_token ||= nil
end

#linked_data_authority_configsObject

Hold linked data authority configs



32
33
34
# File 'lib/qa/configuration.rb', line 32

def linked_data_authority_configs
  @linked_data_authority_configs
end

Instance Method Details

#cors_headers?Boolean

Returns:

  • (Boolean)


3
4
5
6
# File 'lib/qa/configuration.rb', line 3

def cors_headers?
  return @cors_headers_enabled unless @cors_headers_enabled.nil?
  @cors_headers_enabled = false
end

#disable_cors_headersObject



12
13
14
# File 'lib/qa/configuration.rb', line 12

def disable_cors_headers
  @cors_headers_enabled = false
end

#enable_cors_headersObject



8
9
10
# File 'lib/qa/configuration.rb', line 8

def enable_cors_headers
  @cors_headers_enabled = true
end

#valid_authority_reload_token?(token) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
29
# File 'lib/qa/configuration.rb', line 26

def valid_authority_reload_token?(token)
  return false if token.blank? || authorized_reload_token.blank?
  token == authorized_reload_token
end