Exception: Clearbooks::ClearbooksError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clearbooks/error/errors.rb

Class Method Summary collapse

Class Method Details

.status_code(code) ⇒ Object

Parameters:

  • code (Integer)


13
14
15
16
# File 'lib/clearbooks/error/errors.rb', line 13

def status_code(code)
  define_method(:status_code) { code }
  define_singleton_method(:status_code) { code }
end