class Scim::Kit::V2::Error

Represents a SCIM Error

Constants

SCIM_TYPES

Public Class Methods

default_schema() click to toggle source
# File lib/scim/kit/v2/error.rb, line 29
def self.default_schema
  Schema.new(id: Messages::ERROR, name: 'Error', location: nil) do |x|
    x.add_attribute(name: :scim_type) do |attribute|
      attribute.canonical_values = SCIM_TYPES
    end
    x.add_attribute(name: :detail)
    x.add_attribute(name: :status, type: :integer)
  end
end
new(schemas: [self.class.default_schema]) click to toggle source
Calls superclass method
# File lib/scim/kit/v2/error.rb, line 21
def initialize(schemas: [self.class.default_schema])
  super(schemas: schemas)
end

Public Instance Methods

template_name() click to toggle source
# File lib/scim/kit/v2/error.rb, line 25
def template_name
  'resource.json.jbuilder'
end