Class: Kentaa::Api::Clients::NewsletterSubscriptions

Inherits:
Base
  • Object
show all
Defined in:
lib/kentaa/api/clients/newsletter_subscriptions.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Kentaa::Api::Clients::Base

Instance Method Details

#all(options = {}) ⇒ Object



7
8
9
10
# File 'lib/kentaa/api/clients/newsletter_subscriptions.rb', line 7

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

#get(id, options = {}) ⇒ Object



17
18
19
20
# File 'lib/kentaa/api/clients/newsletter_subscriptions.rb', line 17

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

#list(options = {}) ⇒ Object



12
13
14
15
# File 'lib/kentaa/api/clients/newsletter_subscriptions.rb', line 12

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