Class: FuelSDK::ET_TriggeredSend

Inherits:
ET_CUDSupport show all
Defined in:
lib/new.rb

Instance Attribute Summary collapse

Attributes inherited from ET_GetSupport

#filter

Attributes inherited from ET_BaseObject

#authStub, #endpoint, #lastRequestID, #obj, #props

Instance Method Summary collapse

Methods inherited from ET_CUDSupport

#delete, #patch, #post

Methods inherited from ET_GetSupport

#get, #getMoreResults, #info

Constructor Details

#initializeET_TriggeredSend

Returns a new instance of ET_TriggeredSend.



1180
1181
1182
1183
# File 'lib/new.rb', line 1180

def initialize
  super
  @obj = 'TriggeredSendDefinition'
end

Instance Attribute Details

#subscribersObject

Returns the value of attribute subscribers.



1179
1180
1181
# File 'lib/new.rb', line 1179

def subscribers
  @subscribers
end

Instance Method Details

#sendObject



1185
1186
1187
1188
# File 'lib/new.rb', line 1185

def send
  @tscall = {"TriggeredSendDefinition" => @props, "Subscribers" => @subscribers}
  ET_Post.new(@authStub, "TriggeredSend", @tscall)
end