class MotherBrain::APIError
Constants
- DEFAULT_HTTP_STATUS_CODE
Public Class Methods
http_status_code(code = DEFAULT_HTTP_STATUS_CODE)
click to toggle source
@param [Integer] code
@return [Integer]
# File lib/mb/errors.rb, line 99 def http_status_code(code = DEFAULT_HTTP_STATUS_CODE) @exit_code ||= code end
Public Instance Methods
http_status_code()
click to toggle source
# File lib/mb/errors.rb, line 104 def http_status_code self.class.http_status_code end