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

#default_languageObject



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_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

#property_map_default_for_optionalObject



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_logObject



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

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

#limit_ldpath_to_context?Boolean

Returns:

  • (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

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