Sha256: 04b36d468ba40f14c1ad56d5c3eae89f133315f226f24087dd757f0159ead50d
Contents?: true
Size: 651 Bytes
Versions: 5
Compression:
Stored size: 651 Bytes
Contents
module JSONAPI class Error attr_accessor :title, :detail, :id, :href, :code, :path, :links, :status def initialize(options={}) @title = options[:title] @detail = options[:detail] @id = options[:id] @href = options[:href] @code = if JSONAPI.configuration.use_text_errors TEXT_ERRORS[options[:code]] else options[:code] end @path = options[:path] @links = options[:links] @status = options[:status] end end end
Version data entries
5 entries across 5 versions & 1 rubygems