Exception: CookbookOmnifetch::OmnifetchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cookbook-omnifetch/exceptions.rb

Class Method Summary collapse

Class Method Details

.status_code(code) ⇒ Object

Parameters:

  • code (Integer)


6
7
8
9
# File 'lib/cookbook-omnifetch/exceptions.rb', line 6

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