Exception: ScimEngine::ErrorResponse

Inherits:
StandardError
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/scim_engine/error_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail


5
6
7
# File 'app/models/scim_engine/error_response.rb', line 5

def detail
  @detail
end

#scimTypeObject

Returns the value of attribute scimType


5
6
7
# File 'app/models/scim_engine/error_response.rb', line 5

def scimType
  @scimType
end

#statusObject

Returns the value of attribute status


5
6
7
# File 'app/models/scim_engine/error_response.rb', line 5

def status
  @status
end

Instance Method Details

#as_json(options = {}) ⇒ Object


7
8
9
10
11
# File 'app/models/scim_engine/error_response.rb', line 7

def as_json(options = {})
  {'schemas': ['urn:ietf:params:scim:api:messages:2.0:Error'],
  'detail': detail,
  'status': "#{status}"}.merge(scimType ? {'scimType': scimType} : {})
end