Class: MarketingCloudSDK::Campaign

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

Defined Under Namespace

Classes: Asset

Instance Attribute Summary

Attributes inherited from Objects::Base

#client

Instance Method Summary collapse

Methods included from Objects::Rest::CUD

#delete, #patch, #post

Methods included from Objects::Rest::Read

#get

Methods inherited from Objects::Base

id, #props

Instance Method Details

#idObject



642
643
644
# File 'lib/marketingcloudsdk/objects.rb', line 642

def id
	self.client.base_api_url + '/hub/v1/campaigns/%{id}'
end

#propertiesObject



636
637
638
639
640
# File 'lib/marketingcloudsdk/objects.rb', line 636

def properties
	@properties ||= {}
	@properties.merge! 'id' => '' unless @properties.include? 'id'
	@properties
end