Exception: DreamOps::DreamOpsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dream-ops/errors.rb

Class Method Summary collapse

Class Method Details

.set_status_code(code) ⇒ Object

Parameters:

  • code (Integer)


5
6
7
8
# File 'lib/dream-ops/errors.rb', line 5

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