Class: JSONAPI::Realizer::Resource::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/jsonapi/realizer/resource/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#adapterObject

Returns the value of attribute adapter.



12
13
14
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 12

def adapter
  @adapter
end

#attributesObject

Returns the value of attribute attributes.



13
14
15
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 13

def attributes
  @attributes
end

#model_classObject

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

#ownerObject

Returns the value of attribute owner.



9
10
11
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 9

def owner
  @owner
end

#relationsObject

Returns the value of attribute relations.



14
15
16
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 14

def relations
  @relations
end

#typeObject

Returns the value of attribute type.



10
11
12
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 10

def type
  @type
end