lib/jsonapi/operation_results.rb in jsonapi-resources-0.4.0 vs lib/jsonapi/operation_results.rb in jsonapi-resources-0.4.1

- old
+ new

@@ -1,13 +1,15 @@ module JSONAPI class OperationResults attr_accessor :results attr_accessor :meta + attr_accessor :links def initialize @results = [] @has_errors = false @meta = {} + @links = {} end def add_result(result) @has_errors = true if result.is_a?(JSONAPI::ErrorsOperationResult) @results.push(result)