lib/kentaa/api/resources/segment.rb in kentaa-api-0.7.2 vs lib/kentaa/api/resources/segment.rb in kentaa-api-0.8.0
- old
+ new
@@ -103,9 +103,13 @@
def newsletter_subscriptions
@newsletter_subscriptions ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::NewsletterSubscription, endpoint_path: "/segments/#{id}/newsletter-subscriptions")
end
+ def activities
+ @activities ||= Kentaa::Api::Resources::List.new(config, resource_class: Kentaa::Api::Resources::Activity, endpoint_path: "/segments/#{id}/activities")
+ end
+
private
def load_resource
request.get("/segments/#{id}", options)
end