lib/kentaa/api/resources/project.rb in kentaa-api-0.7.2 vs lib/kentaa/api/resources/project.rb in kentaa-api-0.8.0

- old
+ new

@@ -179,9 +179,13 @@ def newsletter_subscriptions @newsletter_subscriptions ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::NewsletterSubscription, endpoint_path: "/projects/#{id}/newsletter-subscriptions") end + def activities + @activities ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::Activity, endpoint_path: "/projects/#{id}/activities") + end + private def load_resource request.get("/projects/#{id}", options) end