class SimpleJsonapi::ErrorSerializer

Subclass {ErrorSerializer} to create serializers for specific types of errors.

Public Class Methods

code(*args, **options, &block) click to toggle source

@overload (see Definition::Error#code) @return (see Definition::Error#code)

# File lib/simple_jsonapi/error_serializer.rb, line 20
def code(*args, **options, &block)
  definition.code(*args, **options, &block)
end
detail(*args, **options, &block) click to toggle source

@overload (see Definition::Error#detail) @return (see Definition::Error#detail)

# File lib/simple_jsonapi/error_serializer.rb, line 32
def detail(*args, **options, &block)
  definition.detail(*args, **options, &block)
end
id(*args, **options, &block) click to toggle source

@overload (see Definition::Error#id) @return (see Definition::Error#id)

# File lib/simple_jsonapi/error_serializer.rb, line 8
def id(*args, **options, &block)
  definition.id(*args, **options, &block)
end
meta(name, *args, **options, &block) click to toggle source

@overload (see Definition::Concerns::HasMetaObject#meta) @return (see Definition::Concerns::HasMetaObject#meta)

# 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) click to toggle source

@overload (see Definition::Error#source) @return (see Definition::Error#source)

# File lib/simple_jsonapi/error_serializer.rb, line 38
def source(*args, &block)
  definition.source(*args, &block)
end
status(*args, **options, &block) click to toggle source

@overload (see Definition::Error#status) @return (see Definition::Error#status)

# File lib/simple_jsonapi/error_serializer.rb, line 14
def status(*args, **options, &block)
  definition.status(*args, **options, &block)
end
title(*args, **options, &block) click to toggle source

@overload (see Definition::Error#title) @return (see Definition::Error#title)

# File lib/simple_jsonapi/error_serializer.rb, line 26
def title(*args, **options, &block)
  definition.title(*args, **options, &block)
end

Public Instance Methods

member_definitions() click to toggle source

@return (see Definition::Error#member_definitions)

# File lib/simple_jsonapi/error_serializer.rb, line 58
def member_definitions
  definition.member_definitions
end
meta_definitions() click to toggle source

@return (see Definition::Concerns::HasMetaObject#meta_definitions)

# File lib/simple_jsonapi/error_serializer.rb, line 73
def meta_definitions
  definition.meta_definitions
end
source_definition() click to toggle source

@return (see Definition::Error#source_definitions)

# File lib/simple_jsonapi/error_serializer.rb, line 63
def source_definition
  definition.source_definition
end