module Commons

Author: carlos@yellowme.mx

Description: The APIError class aids us in defining a standard interface for how we handle the errors in our API.

It has two main functions:

1. Hold details of the error thrown so it can
be translated to one of the standard HTTP codes.
2. Provide a consistent way to "serialize" errors.

Attributes:

describe the error.

field is intended to show the error message from a raised error.

error.

Constants

VERSION

Public Class Methods

secret_key_base() click to toggle source
# File lib/commons/config.rb, line 7
def secret_key_base
  @secret_key_base || ENV["secret_key_base"]
end
secret_key_base=(secret_key_base) click to toggle source
# File lib/commons/config.rb, line 3
def secret_key_base=(secret_key_base)
  @secret_key_base = secret_key_base
end