Sha256: cae48289a7a480e14c2c559fc84a945eef41e6c097554b5cb84b2c112cf0af6b

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 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(company, auth_names: 'oauth2')
        end

        private

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

Version data entries

6 entries across 6 versions & 1 rubygems

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