Class: HubSpotSDK::Resources::Marketing

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot_sdk/resources/marketing.rb,
lib/hubspot_sdk/resources/marketing/emails.rb,
lib/hubspot_sdk/resources/marketing/campaigns.rb,
lib/hubspot_sdk/resources/marketing/single_send.rb,
lib/hubspot_sdk/resources/marketing/transactional.rb,
lib/hubspot_sdk/resources/marketing/campaigns/batch.rb,
lib/hubspot_sdk/resources/marketing/campaigns/spend.rb,
lib/hubspot_sdk/resources/marketing/campaigns/assets.rb,
lib/hubspot_sdk/resources/marketing/campaigns/budget.rb,
lib/hubspot_sdk/resources/marketing/marketing_events.rb,
lib/hubspot_sdk/resources/marketing/campaigns/metrics.rb,
lib/hubspot_sdk/resources/marketing/marketing_events/events.rb,
lib/hubspot_sdk/resources/marketing/marketing_events/settings.rb,
lib/hubspot_sdk/resources/marketing/transactional/smtp_tokens.rb,
lib/hubspot_sdk/resources/marketing/transactional/single_email.rb,
lib/hubspot_sdk/resources/marketing/marketing_events/attendance.rb,
lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb,
lib/hubspot_sdk/resources/marketing/marketing_events/subscriber_state.rb,
lib/hubspot_sdk/resources/marketing/marketing_events/list_associations.rb

Defined Under Namespace

Classes: Campaigns, Emails, MarketingEvents, SingleSend, Transactional

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Marketing

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Marketing.

Parameters:



24
25
26
27
28
29
30
31
# File 'lib/hubspot_sdk/resources/marketing.rb', line 24

def initialize(client:)
  @client = client
  @campaigns = HubSpotSDK::Resources::Marketing::Campaigns.new(client: client)
  @emails = HubSpotSDK::Resources::Marketing::Emails.new(client: client)
  @marketing_events = HubSpotSDK::Resources::Marketing::MarketingEvents.new(client: client)
  @single_send = HubSpotSDK::Resources::Marketing::SingleSend.new(client: client)
  @transactional = HubSpotSDK::Resources::Marketing::Transactional.new(client: client)
end

Instance Attribute Details

#campaignsHubSpotSDK::Resources::Marketing::Campaigns (readonly)



7
8
9
# File 'lib/hubspot_sdk/resources/marketing.rb', line 7

def campaigns
  @campaigns
end

#emailsHubSpotSDK::Resources::Marketing::Emails (readonly)



10
11
12
# File 'lib/hubspot_sdk/resources/marketing.rb', line 10

def emails
  @emails
end

#marketing_eventsHubSpotSDK::Resources::Marketing::MarketingEvents (readonly)



13
14
15
# File 'lib/hubspot_sdk/resources/marketing.rb', line 13

def marketing_events
  @marketing_events
end

#single_sendHubSpotSDK::Resources::Marketing::SingleSend (readonly)



16
17
18
# File 'lib/hubspot_sdk/resources/marketing.rb', line 16

def single_send
  @single_send
end

#transactionalHubSpotSDK::Resources::Marketing::Transactional (readonly)



19
20
21
# File 'lib/hubspot_sdk/resources/marketing.rb', line 19

def transactional
  @transactional
end