Sha256: 4d44cb67700dbbaf587b407957dfb17156aa88da0828195e5d52ca1144b73133

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

module Services
  module Hubspot
    module Companies
      class Update
        def initialize(id, properties)
          @id = id
          @properties = properties
        end

        def call
          basic_api = ::Hubspot::Crm::Companies::BasicApi.new
          basic_api.update(@id, 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/update.rb
hubspot-api-client-8.0.1 sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb
hubspot-api-client-8.0.0 sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb
hubspot-api-client-7.3.0 sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb
hubspot-api-client-7.2.0 sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb
hubspot-api-client-7.1.1 sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb