class Lurch::Error

Constants

JSON_API_ERROR_FIELDS

Public Class Methods

new(error_object) click to toggle source
# File lib/lurch/error.rb, line 7
def initialize(error_object)
  JSON_API_ERROR_FIELDS.each do |field|
    instance_variable_set("@#{field}", error_object[field])
  end
end