Class: Qa::Configuration
- Inherits:
-
Object
- Object
- Qa::Configuration
- Defined in:
- lib/qa/configuration.rb
Instance Attribute Summary collapse
- #authorized_reload_token ⇒ Object
- #default_language ⇒ Object
-
#limit_ldpath_to_context ⇒ Object
writeonly
When true, prevents ldpath requests from making additional network calls.
-
#linked_data_authority_configs ⇒ Object
Hold linked data authority configs.
- #property_map_default_for_optional ⇒ Object
- #suppress_ip_data_from_log ⇒ Object
Instance Method Summary collapse
- #cors_headers? ⇒ Boolean
- #disable_cors_headers ⇒ Object
- #enable_cors_headers ⇒ Object
- #limit_ldpath_to_context? ⇒ Boolean
- #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 |
#default_language ⇒ Object
37 38 39 |
# File 'lib/qa/configuration.rb', line 37 def default_language @default_language ||= :en end |
#limit_ldpath_to_context=(value) ⇒ Object (writeonly)
When true, prevents ldpath requests from making additional network calls. All values will come from the context graph passed to the ldpath request.
43 44 45 |
# File 'lib/qa/configuration.rb', line 43 def limit_ldpath_to_context=(value) @limit_ldpath_to_context = value 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 |
#property_map_default_for_optional ⇒ Object
53 54 55 56 |
# File 'lib/qa/configuration.rb', line 53 def property_map_default_for_optional @property_map_default_for_optional = false if @property_map_default_for_optional.nil? @property_map_default_for_optional end |
#suppress_ip_data_from_log ⇒ Object
62 63 64 65 |
# File 'lib/qa/configuration.rb', line 62 def suppress_ip_data_from_log @suppress_ip_data_from_log = true if @suppress_ip_data_from_log.nil? @suppress_ip_data_from_log 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 |
#limit_ldpath_to_context? ⇒ Boolean
44 45 46 47 |
# File 'lib/qa/configuration.rb', line 44 def limit_ldpath_to_context? @limit_ldpath_to_context = true if @limit_ldpath_to_context.nil? @limit_ldpath_to_context 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 |