Class: Qa::Configuration
- Inherits:
-
Object
- Object
- Qa::Configuration
- Defined in:
- lib/qa/configuration.rb
Instance Attribute Summary collapse
- #authorized_reload_token ⇒ Object
-
#linked_data_authority_configs ⇒ Object
Hold linked data authority configs.
Instance Method Summary collapse
- #cors_headers? ⇒ Boolean
- #disable_cors_headers ⇒ Object
- #enable_cors_headers ⇒ Object
- #valid_authority_reload_token?(token) ⇒ Boolean
Instance Attribute Details
#authorized_reload_token ⇒ Object
22 23 24 |
# File 'lib/qa/configuration.rb', line 22 def @authorized_reload_token ||= nil end |
#linked_data_authority_configs ⇒ Object
Hold linked data authority configs
32 33 34 |
# File 'lib/qa/configuration.rb', line 32 def @linked_data_authority_configs end |
Instance Method Details
#cors_headers? ⇒ 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_headers ⇒ Object
12 13 14 |
# File 'lib/qa/configuration.rb', line 12 def disable_cors_headers @cors_headers_enabled = false end |
#enable_cors_headers ⇒ Object
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
26 27 28 29 |
# File 'lib/qa/configuration.rb', line 26 def (token) return false if token.blank? || .blank? token == end |