Class: Quiver::Action::FilterError

Inherits:
Error
  • Object
show all
Defined in:
lib/quiver/action/filter_error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#subject, #type

Instance Method Summary collapse

Methods inherited from Error

#==

Constructor Details

#initialize(detail) ⇒ FilterError

Returns a new instance of FilterError.



5
6
7
# File 'lib/quiver/action/filter_error.rb', line 5

def initialize(detail)
  self.detail = detail
end

Instance Attribute Details

#detailObject

Returns the value of attribute detail.



3
4
5
# File 'lib/quiver/action/filter_error.rb', line 3

def detail
  @detail
end

Instance Method Details

#codeObject



21
22
23
# File 'lib/quiver/action/filter_error.rb', line 21

def code
  :filter_error
end

#pathObject



13
14
15
# File 'lib/quiver/action/filter_error.rb', line 13

def path
  "/"
end

#serialization_typeObject



25
26
27
# File 'lib/quiver/action/filter_error.rb', line 25

def serialization_type
  'Error'
end

#statusObject



17
18
19
# File 'lib/quiver/action/filter_error.rb', line 17

def status
  422
end

#titleObject



9
10
11
# File 'lib/quiver/action/filter_error.rb', line 9

def title
  'filter_error'
end