lib/openactive/rpde/rpde_body.rb in openactive-0.1.2 vs lib/openactive/rpde/rpde_body.rb in openactive-0.2.0
- old
+ new
@@ -149,9 +149,15 @@
rpde_body.next = "#{feed_base_url}?afterChangeNumber=#{CGI.escape(change_number.to_s)}"
end
end
rpde_body
end
+
+ def serialize(**kwargs)
+ super.tap do |data|
+ data["items"] ||= []
+ end
+ end
end
end
end
# rubocop:enable Metrics/MethodLength