class Multiwoven::Integrations::Destination::Hubspot::Client

def write(sync_config, records, action = "create")

def write(sync_config, records, action = "create")
  @action = sync_config.stream.action || action
  initialize_client(sync_config.destination.connection_specification)
  process_records(records, sync_config.stream)
rescue StandardError => e
  handle_exception("HUBSPOT:CRM:WRITE:EXCEPTION", "error", e)
end