Sha256: 40a3a17c446b775bf0e2b9252dce171cc9acddfbf14c21be10a974e8250892fb

Contents?: true

Size: 503 Bytes

Versions: 12

Compression:

Stored size: 503 Bytes

Contents

module Services
  module Hubspot
    module Contacts
      class Create
        def initialize(properties)
          @properties = properties
        end

        def call
          create_api = ::Hubspot::Crm::Contacts::BasicApi.new
          create_api.create(contact_input, auth_names: 'oauth2')
        end

        private

        def contact_input
          @contact_input ||= ::Hubspot::Crm::Contacts::SimplePublicObjectInput.new(properties: @properties)
        end
      end
    end
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-9.0.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-8.0.1 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-8.0.1 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-8.0.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-8.0.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.3.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.3.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.2.0 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.2.0 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.1.1 sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb
hubspot-api-client-7.1.1 sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb