Sha256: 18b19554729f8da2b1db597fee39a1a4628696a94ee6cfd55480ac05333e5771

Contents?: true

Size: 484 Bytes

Versions: 12

Compression:

Stored size: 484 Bytes

Contents

module Services
  module Hubspot
    module Properties
      class Create
        def initialize(params)
          @params = params
        end

        def call
          core_api = ::Hubspot::Crm::Properties::CoreApi.new
          core_api.create('contact', property_create, auth_names: 'oauth2')
        end

        private

        def property_create
          @property_create ||= ::Hubspot::Crm::Properties::PropertyCreate.new(@params)
        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/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-9.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-8.0.1 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-8.0.1 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-8.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-8.0.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.3.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.3.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.2.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.2.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.1.1 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.1.1 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb