Class: JsonapiCompliable::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_concurrencyBoolean

Returns Concurrently fetch sideloads? This is experimental and may be removed. Defaults to false

Returns:

  • (Boolean)

    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_sideloadBoolean

Returns Should we raise when the client requests a relationship not defined on the server? Defaults to true.

Returns:

  • (Boolean)

    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