Module: RestfulError::Helper

Defined in:
lib/restful_error.rb

Instance Method Summary collapse

Instance Method Details

#restfulObject

Raises:

  • (NotImplementedError)


13
14
15
16
17
# File 'lib/restful_error.rb', line 13

def restful
  raise NotImplementedError, "http_status must be implemented by including class" unless respond_to?(:http_status)

  @restful ||= Status.new(RestfulError.code_from(http_status))
end