Class: JsonapiCompliable::Configuration
- Inherits:
-
Object
- Object
- JsonapiCompliable::Configuration
- Defined in:
- lib/jsonapi_compliable/configuration.rb
Instance Attribute Summary collapse
-
#experimental_concurrency ⇒ Boolean
Concurrently fetch sideloads? This is experimental and may be removed.
-
#raise_on_missing_sideload ⇒ Boolean
Should we raise when the client requests a relationship not defined on the server? Defaults to true.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
private
Set defaults.
Constructor Details
#initialize ⇒ Configuration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Set defaults
13 14 15 16 |
# File 'lib/jsonapi_compliable/configuration.rb', line 13 def initialize @raise_on_missing_sideload = true @experimental_concurrency = false end |
Instance Attribute Details
#experimental_concurrency ⇒ Boolean
Returns Concurrently fetch sideloads? This is experimental and may be removed. Defaults to false
9 10 11 |
# File 'lib/jsonapi_compliable/configuration.rb', line 9 def experimental_concurrency @experimental_concurrency end |
#raise_on_missing_sideload ⇒ Boolean
Returns Should we raise when the client requests a relationship not defined on the server? Defaults to true.
6 7 8 |
# File 'lib/jsonapi_compliable/configuration.rb', line 6 def raise_on_missing_sideload @raise_on_missing_sideload end |