Sha256: 9d43ef38b37800b5588891034da586fdd0644f685ad0979aa1115ad3e187f192

Contents?: true

Size: 519 Bytes

Versions: 20

Compression:

Stored size: 519 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
          params = { auth_names: 'oauth2', body: property_create }
          core_api.create('contact',params)
        end

        private

        def property_create
          @property_create ||= ::Hubspot::Crm::Properties::PropertyCreate.new(@params)
        end
      end
    end
  end
end

Version data entries

20 entries across 15 versions & 1 rubygems

Version Path
hubspot-api-client-7.1.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.1.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.0.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-7.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-6.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-6.0.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-5.0.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-5.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-4.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-4.0.0 sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-3.3.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-3.2.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-3.1.1 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-3.1.0.pre.beta sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-3.0.0.pre.beta sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-2.3.2 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-2.3.1 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-2.2.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-2.1.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb
hubspot-api-client-2.0.0 sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb