Sha256: 9bf4fcd6301a4dae3d60310ee36bf8ca09dacb0625e9f56facf5a678d7fe8875
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jsonapi-resources-0.4.4 | lib/jsonapi/error.rb |
jsonapi-resources-0.4.3 | lib/jsonapi/error.rb |