Class: MarketingCloudSDK::Patch

Inherits:
Objects::Base show all
Includes:
Objects::Soap::CUD
Defined in:
lib/marketingcloudsdk/objects.rb

Instance Attribute Summary collapse

Attributes inherited from Objects::Base

#client, #properties

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Objects::Soap::CUD

#delete, #post

Methods inherited from Objects::Base

id, #props

Constructor Details

#initialize(client, id, properties) ⇒ Patch

Returns a new instance of Patch.



738
739
740
741
742
# File 'lib/marketingcloudsdk/objects.rb', line 738

def initialize client, id, properties
	self.properties = properties
	self.client = client
	self.id = id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



736
737
738
# File 'lib/marketingcloudsdk/objects.rb', line 736

def id
  @id
end

Class Method Details

.new(client, id, properties = nil) ⇒ Object



749
750
751
752
753
# File 'lib/marketingcloudsdk/objects.rb', line 749

def new client, id, properties=nil
	o = self.allocate
	o.send :initialize, client, id, properties
	return o.patch
end

Instance Method Details

#patchObject



744
745
746
# File 'lib/marketingcloudsdk/objects.rb', line 744

def patch
	super
end