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.
21 22 23 24 25 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 21 def initialize(**keyword_arguments) super(**keyword_arguments) validate! end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
12 13 14 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 12 def adapter @adapter end |
#attributes ⇒ Object
Returns the value of attribute attributes.
13 14 15 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 13 def attributes @attributes end |
#model_class ⇒ Object
Returns the value of attribute model_class.
11 12 13 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 11 def model_class @model_class end |
#owner ⇒ Object
Returns the value of attribute owner.
9 10 11 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 9 def owner @owner end |
#relations ⇒ Object
Returns the value of attribute relations.
14 15 16 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 14 def relations @relations end |
#type ⇒ Object
Returns the value of attribute type.
10 11 12 |
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 10 def type @type end |