Sha256: 2b5b58c32151c675277dd50d20dc65c90152cb2708a3ebff5914ba77b1c634c4

Contents?: true

Size: 503 Bytes

Versions: 15

Compression:

Stored size: 503 Bytes

Contents

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

        def call
          basic_api = ::Hubspot::Crm::Companies::BasicApi.new
          basic_api.create(auth_names: 'oauth2', body: company)
        end

        private

        def company
          ::Hubspot::Crm::Companies::SimplePublicObjectInput.new(
            properties: @properties
          )
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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