Class: SimpleJsonapi::ErrorSerializer
- Inherits:
-
Object
- Object
- SimpleJsonapi::ErrorSerializer
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
-
.about_link(*args, **options, &block) ⇒ void
-
.code(*args, **options, &block) ⇒ void
-
.detail(*args, **options, &block) ⇒ void
-
.id(*args, **options, &block) ⇒ void
-
.meta(name, *args, **options, &block) ⇒ void
-
.source(*args, &block) ⇒ void
-
.status(*args, **options, &block) ⇒ void
-
.title(*args, **options, &block) ⇒ void
Instance Method Summary
collapse
#definition, #with
Class Method Details
#about_link(options = {}, &block) ⇒ void
#about_link(value, options = {}) ⇒ void
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
|
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
#link_definitions ⇒ Hash{Symbol => String,Object}
68
69
70
|
# File 'lib/simple_jsonapi/error_serializer.rb', line 68
def link_definitions
definition.link_definitions
end
|
#member_definitions ⇒ Hash{Symbol => Attribute}
58
59
60
|
# File 'lib/simple_jsonapi/error_serializer.rb', line 58
def member_definitions
definition.member_definitions
end
|
73
74
75
|
# File 'lib/simple_jsonapi/error_serializer.rb', line 73
def meta_definitions
definition.meta_definitions
end
|
#source_definition ⇒ Object
63
64
65
|
# File 'lib/simple_jsonapi/error_serializer.rb', line 63
def source_definition
definition.source_definition
end
|