Class: JSONAPI::Realizer::Resource::Configuration
- Inherits:
-
Object
- Object
- JSONAPI::Realizer::Resource::Configuration
- Includes:
- ActiveModel::Model
- Defined in:
- lib/jsonapi/realizer/resource/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#model_class ⇒ Object
Returns the value of attribute model_class.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#relations ⇒ Object
Returns the value of attribute relations.
-
#type ⇒ Object
Returns the value of attribute type.
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.
19 20 21 22 23 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 19 def initialize(**keyword_arguments) super(**keyword_arguments) validate! end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
10 11 12 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 10 def adapter @adapter end |
#attributes ⇒ Object
Returns the value of attribute attributes.
11 12 13 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 11 def attributes @attributes end |
#model_class ⇒ Object
Returns the value of attribute model_class.
9 10 11 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 9 def model_class @model_class end |
#owner ⇒ Object
Returns the value of attribute owner.
7 8 9 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 7 def owner @owner end |
#relations ⇒ Object
Returns the value of attribute relations.
12 13 14 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 12 def relations @relations end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 8 def type @type end |