class AthenaHealth::Error

Constants

ERROR_TYPES

Public Class Methods

new(code:) click to toggle source
# File lib/athena_health/error.rb, line 28
def initialize(code:)
  @code = code
end

Public Instance Methods

render() click to toggle source
# File lib/athena_health/error.rb, line 32
def render
  fail ERROR_TYPES[@code]
end