lib/kentaa/api/resources/site.rb in kentaa-api-0.5.0 vs lib/kentaa/api/resources/site.rb in kentaa-api-0.6.0

- old
+ new

@@ -84,18 +84,18 @@ def external_reference data[:external_reference] end def donations - @donations ||= Kentaa::Api::Resources::Donations.new(config) + @donations ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::Donation, endpoint_path: "/donations") end def manual_donations - @manual_donations ||= Kentaa::Api::Resources::ManualDonations.new(config) + @manual_donations ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::ManualDonation, endpoint_path: "/manual-donations") end def newsletter_subscriptions - @newsletter_subscriptions ||= Kentaa::Api::Resources::NewsletterSubscriptions.new(config) + @newsletter_subscriptions ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::NewsletterSubscription, endpoint_path: "/newsletter-subscriptions") end private def load_resource