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