class Hubspot::EngagementCall
Public Class Methods
create!(contact_vid, body, duration, owner_id = nil, deal_id = nil, status = 'COMPLETED', time = nil)
click to toggle source
Calls superclass method
Hubspot::Engagement::create!
# File lib/hubspot/engagement.rb, line 172 def create!(contact_vid, body, duration, owner_id = nil, deal_id = nil, status = 'COMPLETED', time = nil) data = { engagement: { type: 'CALL' }, associations: { contactIds: [contact_vid], dealIds: [deal_id], ownerIds: [owner_id] }, metadata: { body: body, status: status, durationMilliseconds: duration } } data[:engagement][:timestamp] = (time.to_i) * 1000 if time data[:engagement][:owner_id] = owner_id if owner_id super(data) end
Public Instance Methods
body()
click to toggle source
# File lib/hubspot/engagement.rb, line 155 def body metadata['body'] end
company_ids()
click to toggle source
# File lib/hubspot/engagement.rb, line 163 def company_ids associations['companyIds'] end
contact_ids()
click to toggle source
# File lib/hubspot/engagement.rb, line 159 def contact_ids associations['contactIds'] end
deal_ids()
click to toggle source
# File lib/hubspot/engagement.rb, line 167 def deal_ids associations['dealIds'] end