Sha256: 1e9f7d92e8c4546270a7f44378f292fd3a8097506642939364e759395ba2e862
Contents?: true
Size: 673 Bytes
Versions: 6
Compression:
Stored size: 673 Bytes
Contents
module Services module Hubspot module Properties class Update def initialize(name, params) @name = name @params = params end def call core_api = ::Hubspot::Crm::Properties::CoreApi.new core_api.update('contact', @name, property_update, auth_names: 'oauth2') end private def property_update @params.filter! do |(key, value)| ::Hubspot::Crm::Properties::PropertyUpdate.attribute_map.keys.include?(key.to_sym) end @property_update ||= ::Hubspot::Crm::Properties::PropertyUpdate.new(@params) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems