Exception: Jammit::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jammit-core.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.status_code(code = nil) ⇒ Object


38
39
40
41
# File 'lib/jammit-core.rb', line 38

def self.status_code(code = nil)
  return @code unless code
  @code = code
end

Instance Method Details

#status_codeObject


43
44
45
# File 'lib/jammit-core.rb', line 43

def status_code
  self.class.status_code
end