Class: SimpleJsonapi::ErrorSerializer

Inherits:
Object
  • Object
show all
Includes:
SerializerMethods
Defined in:
lib/simple_jsonapi/error_serializer.rb

Overview

Subclass ErrorSerializer to create serializers for specific types of errors.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from SerializerMethods

#definition, #with

Class Method Details

This method returns an undefined value.



44
45
46
# File 'lib/simple_jsonapi/error_serializer.rb', line 44

def about_link(*args, **options, &block)
  definition.about_link(*args, **options, &block)
end

#code(options = {}, &block) ⇒ void #code(value, options = {}) ⇒ void

This method returns an undefined value.



20
21
22
# File 'lib/simple_jsonapi/error_serializer.rb', line 20

def code(*args, **options, &block)
  definition.code(*args, **options, &block)
end

#detail(options = {}, &block) ⇒ void #detail(value, options = {}) ⇒ void

This method returns an undefined value.



32
33
34
# File 'lib/simple_jsonapi/error_serializer.rb', line 32

def detail(*args, **options, &block)
  definition.detail(*args, **options, &block)
end

#id(options = {}, &block) ⇒ void #id(value, options = {}) ⇒ void

This method returns an undefined value.



8
9
10
# File 'lib/simple_jsonapi/error_serializer.rb', line 8

def id(*args, **options, &block)
  definition.id(*args, **options, &block)
end

#meta(name, options = {}, &block) ⇒ void #meta(name, value, options = {}) ⇒ void

This method returns an undefined value.



50
51
52
# File 'lib/simple_jsonapi/error_serializer.rb', line 50

def meta(name, *args, **options, &block)
  definition.meta(name, *args, **options, &block)
end

.source(*args, &block) ⇒ void

This method returns an undefined value.



38
39
40
# File 'lib/simple_jsonapi/error_serializer.rb', line 38

def source(*args, &block)
  definition.source(*args, &block)
end

#status(options = {}, &block) ⇒ void #status(value, options = {}) ⇒ void

This method returns an undefined value.



14
15
16
# File 'lib/simple_jsonapi/error_serializer.rb', line 14

def status(*args, **options, &block)
  definition.status(*args, **options, &block)
end

#title(options = {}, &block) ⇒ void #title(value, options = {}) ⇒ void

This method returns an undefined value.



26
27
28
# File 'lib/simple_jsonapi/error_serializer.rb', line 26

def title(*args, **options, &block)
  definition.title(*args, **options, &block)
end

Instance Method Details

Returns:

  • (Hash{Symbol => String,Object})


68
69
70
# File 'lib/simple_jsonapi/error_serializer.rb', line 68

def link_definitions
  definition.link_definitions
end

#member_definitionsHash{Symbol => Attribute}

Returns:

  • (Hash{Symbol => Attribute})


58
59
60
# File 'lib/simple_jsonapi/error_serializer.rb', line 58

def member_definitions
  definition.member_definitions
end

#meta_definitionsHash{Symbol => String,Object}

Returns:

  • (Hash{Symbol => String,Object})


73
74
75
# File 'lib/simple_jsonapi/error_serializer.rb', line 73

def meta_definitions
  definition.meta_definitions
end

#source_definitionObject



63
64
65
# File 'lib/simple_jsonapi/error_serializer.rb', line 63

def source_definition
  definition.source_definition
end