Class: Quiver::Model::ValidationError
- Inherits:
-
Error
- Object
- Error
- Quiver::Model::ValidationError
show all
- Defined in:
- lib/quiver/model/validation_error.rb
Instance Attribute Summary
Attributes inherited from Error
#subject, #type
Instance Method Summary
collapse
Methods inherited from Error
#==, #initialize
Constructor Details
This class inherits a constructor from Quiver::Error
Instance Method Details
#code ⇒ Object
19
20
21
|
# File 'lib/quiver/model/validation_error.rb', line 19
def code
:model_validation_error
end
|
#detail ⇒ Object
7
8
9
|
# File 'lib/quiver/model/validation_error.rb', line 7
def detail
type
end
|
#path ⇒ Object
11
12
13
|
# File 'lib/quiver/model/validation_error.rb', line 11
def path
"/#{subject}"
end
|
#serialization_type ⇒ Object
23
24
25
|
# File 'lib/quiver/model/validation_error.rb', line 23
def serialization_type
'Error'
end
|
#status ⇒ Object
15
16
17
|
# File 'lib/quiver/model/validation_error.rb', line 15
def status
422
end
|
#title ⇒ Object
3
4
5
|
# File 'lib/quiver/model/validation_error.rb', line 3
def title
type
end
|