Class: HubSpotSDK::Resources::Events

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot_sdk/resources/events.rb,
lib/hubspot_sdk/resources/events/send.rb,
lib/hubspot_sdk/resources/events/definitions.rb,
lib/hubspot_sdk/resources/events/occurrences.rb

Defined Under Namespace

Classes: Definitions, Occurrences, Send

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Events

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 Events.

Parameters:



18
19
20
21
22
23
# File 'lib/hubspot_sdk/resources/events.rb', line 18

def initialize(client:)
  @client = client
  @definitions = HubSpotSDK::Resources::Events::Definitions.new(client: client)
  @occurrences = HubSpotSDK::Resources::Events::Occurrences.new(client: client)
  @send_ = HubSpotSDK::Resources::Events::Send.new(client: client)
end

Instance Attribute Details

#definitionsHubSpotSDK::Resources::Events::Definitions (readonly)



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

def definitions
  @definitions
end

#occurrencesHubSpotSDK::Resources::Events::Occurrences (readonly)



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

def occurrences
  @occurrences
end

#send_HubSpotSDK::Resources::Events::Send (readonly)



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

def send_
  @send_
end