Class: JSONAPI::Materializer::Configuration
- Inherits:
-
Object
- Object
- JSONAPI::Materializer::Configuration
- Includes:
- ActiveModel::Model
- Defined in:
- lib/jsonapi/materializer/configuration.rb
Instance Attribute Summary collapse
-
#default_identifier ⇒ Object
Returns the value of attribute default_identifier.
-
#default_invalid_accept_exception ⇒ Object
Returns the value of attribute default_invalid_accept_exception.
-
#default_missing_accept_exception ⇒ Object
Returns the value of attribute default_missing_accept_exception.
-
#default_origin ⇒ Object
Returns the value of attribute default_origin.
Instance Method Summary collapse
-
#initialize(**keyword_arguments) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(**keyword_arguments) ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 |
# File 'lib/jsonapi/materializer/configuration.rb', line 16 def initialize(**keyword_arguments) super(**keyword_arguments) validate! end |
Instance Attribute Details
#default_identifier ⇒ Object
Returns the value of attribute default_identifier.
9 10 11 |
# File 'lib/jsonapi/materializer/configuration.rb', line 9 def default_identifier @default_identifier end |
#default_invalid_accept_exception ⇒ Object
Returns the value of attribute default_invalid_accept_exception.
11 12 13 |
# File 'lib/jsonapi/materializer/configuration.rb', line 11 def default_invalid_accept_exception @default_invalid_accept_exception end |
#default_missing_accept_exception ⇒ Object
Returns the value of attribute default_missing_accept_exception.
10 11 12 |
# File 'lib/jsonapi/materializer/configuration.rb', line 10 def default_missing_accept_exception @default_missing_accept_exception end |
#default_origin ⇒ Object
Returns the value of attribute default_origin.
8 9 10 |
# File 'lib/jsonapi/materializer/configuration.rb', line 8 def default_origin @default_origin end |