Class: SendgridToolkit::Lists

Inherits:
NewsletterSendgridClient show all
Defined in:
lib/sendgrid_toolkit/newsletter/lists.rb

Instance Method Summary collapse

Methods inherited from AbstractSendgridClient

#initialize

Constructor Details

This class inherits a constructor from SendgridToolkit::AbstractSendgridClient

Instance Method Details

#add(options = {}) ⇒ Object



3
4
5
# File 'lib/sendgrid_toolkit/newsletter/lists.rb', line 3

def add(options = {})
  api_post('lists', 'add', options).parsed_response
end

#delete(options = {}) ⇒ Object



15
16
17
# File 'lib/sendgrid_toolkit/newsletter/lists.rb', line 15

def delete(options = {})
  api_post('lists', 'delete', options).parsed_response
end

#edit(options = {}) ⇒ Object



11
12
13
# File 'lib/sendgrid_toolkit/newsletter/lists.rb', line 11

def edit(options = {})
  api_post('lists', 'edit', options).parsed_response
end

#get(options = {}) ⇒ Object



7
8
9
# File 'lib/sendgrid_toolkit/newsletter/lists.rb', line 7

def get(options = {})
  api_post('lists', 'get', options).parsed_response
end