Class: FuelSDK::TriggeredSend
- Inherits:
-
Objects::Base
- Object
- Objects::Base
- FuelSDK::TriggeredSend
- Includes:
- Objects::Soap::CUD, Objects::Soap::Read
- Defined in:
- lib/fuelsdk/objects.rb
Instance Attribute Summary collapse
-
#folder_id ⇒ Object
Returns the value of attribute folder_id.
-
#subscribers ⇒ Object
Returns the value of attribute subscribers.
Attributes included from Objects::Soap::Read
Attributes inherited from Objects::Base
Instance Method Summary collapse
Methods included from Objects::Soap::CUD
Methods included from Objects::Soap::Read
Methods inherited from Objects::Base
Instance Attribute Details
#folder_id ⇒ Object
Returns the value of attribute folder_id.
376 377 378 |
# File 'lib/fuelsdk/objects.rb', line 376 def folder_id @folder_id end |
#subscribers ⇒ Object
Returns the value of attribute subscribers.
376 377 378 |
# File 'lib/fuelsdk/objects.rb', line 376 def subscribers @subscribers end |
Instance Method Details
#folder_media_type ⇒ Object
385 386 387 |
# File 'lib/fuelsdk/objects.rb', line 385 def folder_media_type 'triggered_send' end |
#folder_property ⇒ Object
381 382 383 |
# File 'lib/fuelsdk/objects.rb', line 381 def folder_property 'CategoryID' end |
#id ⇒ Object
377 378 379 |
# File 'lib/fuelsdk/objects.rb', line 377 def id 'TriggeredSendDefinition' end |
#send ⇒ Object
389 390 391 392 393 394 395 396 397 398 399 |
# File 'lib/fuelsdk/objects.rb', line 389 def send if self.properties.is_a? Array then tscall = [] self.properties.each{ |p| tscall.push({"TriggeredSendDefinition" => {"CustomerKey" => p["CustomerKey"]}, "Subscribers" => p["Subscribers"]}) } else tscall = {"TriggeredSendDefinition" => self.properties, "Subscribers" => @subscribers} end client.soap_post 'TriggeredSend', tscall end |