lib/seam/resources/resource_warnings_support.rb in seamapi-1.1.1 vs lib/seam/resources/resource_warnings_support.rb in seamapi-1.2.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
module Seam
module ResourceWarningsSupport
def warnings
- @warnings ||= @data["warnings"].is_a?(Array) ? Seam::ResourceWarning.load_from_response(@data["warnings"]) : []
+ @warnings_converted ||= @warnings.is_a?(Array) ? Seam::ResourceWarning.load_from_response(@warnings) : []
end
end
end