Sha256: b874a89a6ec5b1678fe2f981add3d89dd7c2f9ff27616c7b1b9d329e117d8147

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

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

        def call
          simple_public_object_input = ::Hubspot::Crm::Deals::SimplePublicObjectInput.new(properties: @properties)
          ::Hubspot::Crm::Deals::BasicApi.new.update(@id, simple_public_object_input, auth_names: 'oauth2')
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb
hubspot-api-client-8.0.1 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb
hubspot-api-client-8.0.0 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb
hubspot-api-client-7.3.0 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb
hubspot-api-client-7.2.0 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb
hubspot-api-client-7.1.1 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb
hubspot-api-client-7.1.0 sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb