lib/jsonapi/error.rb in jsonapi-resources-0.4.2 vs lib/jsonapi/error.rb in jsonapi-resources-0.4.3
- old
+ new
@@ -1,10 +1,9 @@
module JSONAPI
class Error
-
attr_accessor :title, :detail, :id, :href, :code, :path, :links, :status
- def initialize(options={})
+ def initialize(options = {})
@title = options[:title]
@detail = options[:detail]
@id = options[:id]
@href = options[:href]
@code = if JSONAPI.configuration.use_text_errors