Class: MailchimpAPI::LandingPage

Inherits:
Base
  • Object
show all
Extended by:
Support::Countable
Includes:
Support::PatchUpdate
Defined in:
lib/mailchimp_api/resources/landing_page.rb

Instance Method Summary collapse

Methods included from Support::Countable

count

Methods inherited from Base

activate_session, exists?, headers, reset_session, #to_h

Instance Method Details

#publishObject



14
15
16
17
# File 'lib/mailchimp_api/resources/landing_page.rb', line 14

def publish
  path = element_path(prefix_options) + '/actions/publish'
  connection.post path, nil, self.class.headers
end

#unpublishObject



19
20
21
22
# File 'lib/mailchimp_api/resources/landing_page.rb', line 19

def unpublish
  path = element_path(prefix_options) + '/actions/unpublish'
  connection.post path, nil, self.class.headers
end