Exception: ScimEngine::ErrorResponse
- Inherits:
-
StandardError
- Object
- StandardError
- ScimEngine::ErrorResponse
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/scim_engine/error_response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#scimType ⇒ Object
Returns the value of attribute scimType.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
5 6 7 |
# File 'app/models/scim_engine/error_response.rb', line 5 def detail @detail end |
#scimType ⇒ Object
Returns the value of attribute scimType
5 6 7 |
# File 'app/models/scim_engine/error_response.rb', line 5 def scimType @scimType end |
#status ⇒ Object
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( = {}) {'schemas': ['urn:ietf:params:scim:api:messages:2.0:Error'], 'detail': detail, 'status': "#{status}"}.merge(scimType ? {'scimType': scimType} : {}) end |