Class: MarketingCloudSDK::Post

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, #patch

Methods inherited from Objects::Base

id, #props

Constructor Details

#initialize(client, id, properties) ⇒ Post

Returns a new instance of Post.



692
693
694
695
696
# File 'lib/marketingcloudsdk/objects.rb', line 692

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.



690
691
692
# File 'lib/marketingcloudsdk/objects.rb', line 690

def id
  @id
end

Class Method Details

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



703
704
705
706
707
# File 'lib/marketingcloudsdk/objects.rb', line 703

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

Instance Method Details

#postObject



698
699
700
# File 'lib/marketingcloudsdk/objects.rb', line 698

def post
	super
end