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.



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

#adapterObject

Returns the value of attribute adapter.



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

def adapter
  @adapter
end

#attributesObject

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#model_classObject

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

#ownerObject

Returns the value of attribute owner.



7
8
9
# File 'lib/jsonapi/realizer/resource/configuration.rb', line 7

def owner
  @owner
end

#relationsObject

Returns the value of attribute relations.



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

def relations
  @relations
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end