Class: MarketingCloudSDK::Campaign::Asset

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

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



656
657
658
# File 'lib/marketingcloudsdk/objects.rb', line 656

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

#propertiesObject



650
651
652
653
654
# File 'lib/marketingcloudsdk/objects.rb', line 650

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