Sha256: ce8452642744395bd73aade42a02d6f553e08a44c508c2a514abbb939f73c459

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    module Clients
      class NewsletterSubscriptions < Base
        include Kentaa::Api::Clients::All

        def list(options = {})
          newsletter_subscriptions = Kentaa::Api::Resources::NewsletterSubscriptions.new(config, options)
          newsletter_subscriptions.load
        end

        def get(id, options = {})
          newsletter_subscription = Kentaa::Api::Resources::NewsletterSubscription.new(config, options.merge(id: id))
          newsletter_subscription.load
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kentaa-api-0.3.2 lib/kentaa/api/clients/newsletter_subscriptions.rb
kentaa-api-0.3.1 lib/kentaa/api/clients/newsletter_subscriptions.rb
kentaa-api-0.3.0 lib/kentaa/api/clients/newsletter_subscriptions.rb