Skip to content
Browse files

Rather than keep the docs under source control, which doesn't make mu…

…ch sense since they're derivative, make it easy to generate them by adding a Rakefile
  • Loading branch information...
1 parent 99da2c8 commit ec436e6e00a4de84939b947d9a5779008fdd7406 @Empact Empact committed with Andy Shen Aug 9, 2008
Showing with 32 additions and 5,567 deletions.
  1. +3 −0 .gitignore
  2. +29 −0 Rakefile
  3. +0 −170 doc/classes/CMCampaignSummary.html
  4. +0 −22 doc/classes/CMCampaignSummary.src/M000003.html
  5. +0 −111 doc/classes/CMClient.html
  6. +0 −155 doc/classes/CMResult.html
  7. +0 −19 doc/classes/CMResult.src/M000004.html
  8. +0 −355 doc/classes/CampaignMonitor.html
  9. +0 −20 doc/classes/CampaignMonitor.src/M000001.html
  10. +0 −20 doc/classes/CampaignMonitor.src/M000002.html
  11. +0 −19 doc/classes/CampaignMonitor.src/M000003.html
  12. +0 −20 doc/classes/CampaignMonitor.src/M000004.html
  13. +0 −18 doc/classes/CampaignMonitor.src/M000005.html
  14. +0 −18 doc/classes/CampaignMonitor.src/M000006.html
  15. +0 −23 doc/classes/CampaignMonitor.src/M000007.html
  16. +0 −23 doc/classes/CampaignMonitor.src/M000008.html
  17. +0 −23 doc/classes/CampaignMonitor.src/M000009.html
  18. +0 −19 doc/classes/CampaignMonitor.src/M000010.html
  19. +0 −19 doc/classes/CampaignMonitor.src/M000011.html
  20. +0 −18 doc/classes/CampaignMonitor.src/M000012.html
  21. +0 −18 doc/classes/CampaignMonitor.src/M000013.html
  22. +0 −18 doc/classes/CampaignMonitor.src/M000014.html
  23. +0 −19 doc/classes/CampaignMonitor.src/M000015.html
  24. +0 −18 doc/classes/CampaignMonitor.src/M000016.html
  25. +0 −18 doc/classes/CampaignMonitor.src/M000017.html
  26. +0 −18 doc/classes/CampaignMonitor.src/M000018.html
  27. +0 −18 doc/classes/CampaignMonitor.src/M000019.html
  28. +0 −18 doc/classes/CampaignMonitor.src/M000020.html
  29. +0 −18 doc/classes/CampaignMonitor.src/M000021.html
  30. +0 −18 doc/classes/CampaignMonitor.src/M000022.html
  31. +0 −18 doc/classes/CampaignMonitor.src/M000023.html
  32. +0 −29 doc/classes/CampaignMonitor.src/M000024.html
  33. +0 −19 doc/classes/CampaignMonitor.src/M000025.html
  34. +0 −21 doc/classes/CampaignMonitor.src/M000026.html
  35. +0 −20 doc/classes/CampaignMonitor.src/M000027.html
  36. +0 −19 doc/classes/CampaignMonitor.src/M000028.html
  37. +0 −20 doc/classes/CampaignMonitor.src/M000029.html
  38. +0 −18 doc/classes/CampaignMonitor.src/M000030.html
  39. +0 −18 doc/classes/CampaignMonitor.src/M000031.html
  40. +0 −23 doc/classes/CampaignMonitor.src/M000032.html
  41. +0 −23 doc/classes/CampaignMonitor.src/M000033.html
  42. +0 −23 doc/classes/CampaignMonitor.src/M000034.html
  43. +0 −19 doc/classes/CampaignMonitor.src/M000035.html
  44. +0 −387 doc/classes/CampaignMonitor/Campaign.html
  45. +0 −22 doc/classes/CampaignMonitor/Campaign.src/M000027.html
  46. +0 −22 doc/classes/CampaignMonitor/Campaign.src/M000028.html
  47. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000029.html
  48. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000030.html
  49. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000031.html
  50. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000032.html
  51. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000033.html
  52. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000034.html
  53. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000035.html
  54. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000036.html
  55. +0 −22 doc/classes/CampaignMonitor/Campaign.src/M000053.html
  56. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000054.html
  57. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000055.html
  58. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000056.html
  59. +0 −23 doc/classes/CampaignMonitor/Campaign.src/M000057.html
  60. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000058.html
  61. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000059.html
  62. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000060.html
  63. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000061.html
  64. +0 −18 doc/classes/CampaignMonitor/Campaign.src/M000062.html
  65. +0 −226 doc/classes/CampaignMonitor/Client.html
  66. +0 −20 doc/classes/CampaignMonitor/Client.src/M000016.html
  67. +0 −20 doc/classes/CampaignMonitor/Client.src/M000017.html
  68. +0 −23 doc/classes/CampaignMonitor/Client.src/M000018.html
  69. +0 −20 doc/classes/CampaignMonitor/Client.src/M000042.html
  70. +0 −23 doc/classes/CampaignMonitor/Client.src/M000043.html
  71. +0 −23 doc/classes/CampaignMonitor/Client.src/M000044.html
  72. +0 −308 doc/classes/CampaignMonitor/List.html
  73. +0 −20 doc/classes/CampaignMonitor/List.src/M000021.html
  74. +0 −20 doc/classes/CampaignMonitor/List.src/M000022.html
  75. +0 −19 doc/classes/CampaignMonitor/List.src/M000023.html
  76. +0 −19 doc/classes/CampaignMonitor/List.src/M000024.html
  77. +0 −23 doc/classes/CampaignMonitor/List.src/M000025.html
  78. +0 −23 doc/classes/CampaignMonitor/List.src/M000026.html
  79. +0 −20 doc/classes/CampaignMonitor/List.src/M000047.html
  80. +0 −19 doc/classes/CampaignMonitor/List.src/M000048.html
  81. +0 −19 doc/classes/CampaignMonitor/List.src/M000049.html
  82. +0 −23 doc/classes/CampaignMonitor/List.src/M000050.html
  83. +0 −23 doc/classes/CampaignMonitor/List.src/M000051.html
  84. +0 −23 doc/classes/CampaignMonitor/List.src/M000052.html
  85. +0 −162 doc/classes/CampaignMonitor/Result.html
  86. +0 −19 doc/classes/CampaignMonitor/Result.src/M000020.html
  87. +0 −19 doc/classes/CampaignMonitor/Result.src/M000046.html
  88. +0 −212 doc/classes/CampaignMonitor/Subscriber.html
  89. +0 −21 doc/classes/CampaignMonitor/Subscriber.src/M000012.html
  90. +0 −21 doc/classes/CampaignMonitor/Subscriber.src/M000013.html
  91. +0 −19 doc/classes/CampaignMonitor/Subscriber.src/M000014.html
  92. +0 −21 doc/classes/CampaignMonitor/Subscriber.src/M000038.html
  93. +0 −19 doc/classes/CampaignMonitor/Subscriber.src/M000039.html
  94. +0 −19 doc/classes/CampaignMonitor/Subscriber.src/M000040.html
  95. +0 −166 doc/classes/CampaignMonitor/SubscriberBounce.html
  96. +0 −20 doc/classes/CampaignMonitor/SubscriberBounce.src/M000019.html
  97. +0 −20 doc/classes/CampaignMonitor/SubscriberBounce.src/M000045.html
  98. +0 −166 doc/classes/CampaignMonitor/SubscriberClick.html
  99. +0 −20 doc/classes/CampaignMonitor/SubscriberClick.src/M000010.html
  100. +0 −20 doc/classes/CampaignMonitor/SubscriberClick.src/M000036.html
  101. +0 −166 doc/classes/CampaignMonitor/SubscriberOpen.html
  102. +0 −20 doc/classes/CampaignMonitor/SubscriberOpen.src/M000011.html
  103. +0 −20 doc/classes/CampaignMonitor/SubscriberOpen.src/M000037.html
  104. +0 −161 doc/classes/CampaignMonitor/SubscriberUnsubscribe.html
  105. +0 −19 doc/classes/CampaignMonitor/SubscriberUnsubscribe.src/M000015.html
  106. +0 −19 doc/classes/CampaignMonitor/SubscriberUnsubscribe.src/M000041.html
  107. +0 −137 doc/classes/Hash.html
  108. +0 −18 doc/classes/Hash.src/M000002.html
  109. +0 −143 doc/classes/Symbol.html
  110. +0 −18 doc/classes/Symbol.src/M000001.html
  111. +0 −1 doc/created.rid
  112. +0 −119 doc/files/campaign_monitor_old_rb.html
  113. +0 −184 doc/files/lib/campaign_monitor_rb.html
  114. +0 −37 doc/fr_class_index.html
  115. +0 −30 doc/fr_file_index.html
  116. +0 −63 doc/fr_method_index.html
  117. +0 −24 doc/index.html
  118. +0 −208 doc/rdoc-style.css
View
3 .gitignore
@@ -0,0 +1,3 @@
+.project
+doc/*
+pkg/*
View
29 Rakefile
@@ -0,0 +1,29 @@
+require 'rubygems'
+require 'rake/gempackagetask'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+# read the contents of the gemspec, eval it, and assign it to 'spec'
+# this lets us maintain all gemspec info in one place. Nice and DRY.
+spec = eval(IO.read("campaign_monitor.gemspec"))
+
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.gem_spec = spec
+end
+
+task :install => [:package] do
+ sh %{sudo gem install pkg/#{GEM}-#{VERSION}}
+end
+
+Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/test*.rb']
+ t.verbose = true
+end
+
+Rake::RDocTask.new do |rd|
+ rd.main = "README.rdoc"
+ rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+ rd.rdoc_dir = 'doc'
+ rd.options = spec.rdoc_options
+end
View
170 doc/classes/CMCampaignSummary.html
@@ -1,170 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Class: CMCampaignSummary</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">CMCampaignSummary</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../files/campaign_monitor_old_rb.html">
- campaign_monitor_old.rb
- </a>
- <br />
- </td>
- </tr>
-
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- Object
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
-
- <div id="bodyContent">
-
-
-
- <div id="contextContent">
-
-
-
- </div>
-
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
- <a href="#M000003">new</a>&nbsp;&nbsp;
- </div>
- </div>
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
-
-
-
-
- <div id="attribute-list">
- <h3 class="section-bar">Attributes</h3>
-
- <div class="name-list">
- <table>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">bounced</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">clicks</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">recipients</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">total_opened</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">unsubscribed</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- </table>
- </div>
- </div>
-
-
-
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
-
- <div id="method-M000003" class="method-detail">
- <a name="M000003"></a>
-
- <div class="method-heading">
- <a href="CMCampaignSummary.src/M000003.html" target="Code" class="method-signature"
- onclick="popupCode('CMCampaignSummary.src/M000003.html');return false;">
- <span class="method-name">new</span><span class="method-args">(recipients, total_opened, clicks, unsubscribed, bounced)</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
-
- </div>
-
-
- </div>
-
-
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
View
22 doc/classes/CMCampaignSummary.src/M000003.html
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>new (CMCampaignSummary)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 318</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">recipients</span>, <span class="ruby-identifier">total_opened</span>, <span class="ruby-identifier">clicks</span>, <span class="ruby-identifier">unsubscribed</span>, <span class="ruby-identifier">bounced</span>)
- <span class="ruby-ivar">@recipients</span> = <span class="ruby-identifier">recipients</span>
- <span class="ruby-ivar">@total_opened</span> = <span class="ruby-identifier">total_opened</span>
- <span class="ruby-ivar">@clicks</span> = <span class="ruby-identifier">clicks</span>
- <span class="ruby-ivar">@unsubscribed</span> = <span class="ruby-identifier">unsubscribed</span>
- <span class="ruby-ivar">@bounced</span> = <span class="ruby-identifier">bounced</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
111 doc/classes/CMClient.html
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Class: CMClient</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">CMClient</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../files/campaign_monitor_old_rb.html">
- campaign_monitor_old.rb
- </a>
- <br />
- </td>
- </tr>
-
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- Object
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
-
- <div id="bodyContent">
-
-
-
- <div id="contextContent">
-
-
-
- </div>
-
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
-
-
-
-
-
-
-
- <!-- if method_list -->
-
-
- </div>
-
-
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
View
155 doc/classes/CMResult.html
@@ -1,155 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Class: CMResult</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">CMResult</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../files/campaign_monitor_old_rb.html">
- campaign_monitor_old.rb
- </a>
- <br />
- </td>
- </tr>
-
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- Object
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
-
- <div id="bodyContent">
-
-
-
- <div id="contextContent">
-
-
-
- </div>
-
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
- <a href="#M000004">new</a>&nbsp;&nbsp;
- </div>
- </div>
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
-
-
-
-
- <div id="attribute-list">
- <h3 class="section-bar">Attributes</h3>
-
- <div class="name-list">
- <table>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">code</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">message</td>
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
- <td class="context-item-desc"></td>
- </tr>
- </table>
- </div>
- </div>
-
-
-
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
-
- <div id="method-M000004" class="method-detail">
- <a name="M000004"></a>
-
- <div class="method-heading">
- <a href="CMResult.src/M000004.html" target="Code" class="method-signature"
- onclick="popupCode('CMResult.src/M000004.html');return false;">
- <span class="method-name">new</span><span class="method-args">(message, code)</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
-
- </div>
-
-
- </div>
-
-
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
View
19 doc/classes/CMResult.src/M000004.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>new (CMResult)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 308</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">code</span>)
- <span class="ruby-ivar">@message</span> = <span class="ruby-identifier">message</span>
- <span class="ruby-ivar">@code</span> = <span class="ruby-identifier">code</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
355 doc/classes/CampaignMonitor.html
@@ -1,355 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Class: CampaignMonitor</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">CampaignMonitor</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../files/lib/campaign_monitor_rb.html">
- lib/campaign_monitor.rb
- </a>
- <br />
- </td>
- </tr>
-
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- Object
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
-
- <div id="bodyContent">
-
-
-
- <div id="contextContent">
-
-
-
- </div>
-
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
- <a href="#M000010">add_subscriber</a>&nbsp;&nbsp;
- <a href="#M000008">campaigns</a>&nbsp;&nbsp;
- <a href="#M000007">clients</a>&nbsp;&nbsp;
- <a href="#M000005">http_get</a>&nbsp;&nbsp;
- <a href="#M000009">lists</a>&nbsp;&nbsp;
- <a href="#M000006">method_missing</a>&nbsp;&nbsp;
- <a href="#M000002">new</a>&nbsp;&nbsp;
- <a href="#M000003">request</a>&nbsp;&nbsp;
- <a href="#M000004">request_url</a>&nbsp;&nbsp;
- </div>
- </div>
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
- <div id="class-list">
- <h3 class="section-bar">Classes and Modules</h3>
-
- Class <a href="CampaignMonitor/Campaign.html" class="link">CampaignMonitor::Campaign</a><br />
-Class <a href="CampaignMonitor/Client.html" class="link">CampaignMonitor::Client</a><br />
-Class <a href="CampaignMonitor/List.html" class="link">CampaignMonitor::List</a><br />
-Class <a href="CampaignMonitor/Result.html" class="link">CampaignMonitor::Result</a><br />
-Class <a href="CampaignMonitor/Subscriber.html" class="link">CampaignMonitor::Subscriber</a><br />
-Class <a href="CampaignMonitor/SubscriberBounce.html" class="link">CampaignMonitor::SubscriberBounce</a><br />
-Class <a href="CampaignMonitor/SubscriberClick.html" class="link">CampaignMonitor::SubscriberClick</a><br />
-Class <a href="CampaignMonitor/SubscriberOpen.html" class="link">CampaignMonitor::SubscriberOpen</a><br />
-Class <a href="CampaignMonitor/SubscriberUnsubscribe.html" class="link">CampaignMonitor::SubscriberUnsubscribe</a><br />
-
- </div>
-
-
-
-
-
-
-
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
-
- <div id="method-M000002" class="method-detail">
- <a name="M000002"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000002.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000002.html');return false;">
- <span class="method-name">new</span><span class="method-args">(api_key=CAMPAIGN_MONITOR_API_KEY)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Replace this API key with your own (<a
-href="http://www.campaignmonitor.com/api">www.campaignmonitor.com/api</a>/)
-</p>
- </div>
- </div>
-
- <h3 class="section-bar">Public Instance methods</h3>
-
- <div id="method-M000010" class="method-detail">
- <a name="M000010"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000010.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000010.html');return false;">
- <span class="method-name">add_subscriber</span><span class="method-args">(list_id, email, name)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-A quick method of adding a subscriber to a list. Returns a <a
-href="CampaignMonitor/Result.html">Result</a> object
-</p>
-<p>
-Example
-</p>
-<pre>
- @cm = CampaignMonitor.new()
- result = @cm.add_subscriber(12345, &quot;ralph.wiggum@simpsons.net&quot;, &quot;Ralph Wiggum&quot;)
-
- if result.code == 0
- puts &quot;Subscriber Added to List&quot;
- end
-</pre>
- </div>
- </div>
-
- <div id="method-M000008" class="method-detail">
- <a name="M000008"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000008.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000008.html');return false;">
- <span class="method-name">campaigns</span><span class="method-args">(client_id)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Returns an array of <a href="CampaignMonitor/Campaign.html">Campaign</a>
-objects associated with the specified <a
-href="CampaignMonitor/Client.html">Client</a> ID
-</p>
-<p>
-Example
-</p>
-<pre>
- @cm = CampaignMonitor.new()
- @campaigns = @cm.campaigns(12345)
-
- for campaign in @campaigns
- puts campaign.subject
- end
-</pre>
- </div>
- </div>
-
- <div id="method-M000007" class="method-detail">
- <a name="M000007"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000007.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000007.html');return false;">
- <span class="method-name">clients</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Returns an array of <a href="CampaignMonitor/Client.html">Client</a>
-objects associated with the API Key
-</p>
-<p>
-Example
-</p>
-<pre>
- @cm = CampaignMonitor.new()
- @clients = @cm.clients
-
- for client in @clients
- puts client.name
- end
-</pre>
- </div>
- </div>
-
- <div id="method-M000005" class="method-detail">
- <a name="M000005"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000005.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000005.html');return false;">
- <span class="method-name">http_get</span><span class="method-args">(url)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Does an HTTP GET on a given URL and returns the response body
-</p>
- </div>
- </div>
-
- <div id="method-M000009" class="method-detail">
- <a name="M000009"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000009.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000009.html');return false;">
- <span class="method-name">lists</span><span class="method-args">(client_id)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Returns an array of <a
-href="CampaignMonitor/Subscriber.html">Subscriber</a> Lists for the
-specified <a href="CampaignMonitor/Client.html">Client</a> ID
-</p>
-<p>
-Example
-</p>
-<pre>
- @cm = CampaignMonitor.new()
- @lists = @cm.lists(12345)
-
- for list in @lists
- puts list.name
- end
-</pre>
- </div>
- </div>
-
- <div id="method-M000006" class="method-detail">
- <a name="M000006"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000006.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000006.html');return false;">
- <span class="method-name">method_missing</span><span class="method-args">(method_id, *params)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-By overriding the <a href="CampaignMonitor.html#M000006">method_missing</a>
-method, it is possible to easily support all of the methods available in
-the API
-</p>
- </div>
- </div>
-
- <div id="method-M000003" class="method-detail">
- <a name="M000003"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000003.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000003.html');return false;">
- <span class="method-name">request</span><span class="method-args">(method, *params)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Takes a <a href="CampaignMonitor.html">CampaignMonitor</a> API method name
-and set of parameters; returns an XmlSimple object with the response
-</p>
- </div>
- </div>
-
- <div id="method-M000004" class="method-detail">
- <a name="M000004"></a>
-
- <div class="method-heading">
- <a href="CampaignMonitor.src/M000004.html" target="Code" class="method-signature"
- onclick="popupCode('CampaignMonitor.src/M000004.html');return false;">
- <span class="method-name">request_url</span><span class="method-args">(method, *params)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Takes a <a href="CampaignMonitor.html">CampaignMonitor</a> API method name
-and set of parameters; returns the correct URL for the REST API.
-</p>
- </div>
- </div>
-
-
- </div>
-
-
- </div>
-
-
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
View
20 doc/classes/CampaignMonitor.src/M000001.html
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>new (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 64</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">api_key</span>=<span class="ruby-constant">CAMPAIGN_MONITOR_API_KEY</span>)
- <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
- <span class="ruby-ivar">@host</span> = <span class="ruby-value str">'http://app.campaignmonitor.com'</span>
- <span class="ruby-ivar">@api</span> = <span class="ruby-value str">'/api/api.asmx/'</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
20 doc/classes/CampaignMonitor.src/M000002.html
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>new (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 65</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">api_key</span>=<span class="ruby-constant">CAMPAIGN_MONITOR_API_KEY</span>)
- <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
- <span class="ruby-ivar">@host</span> = <span class="ruby-value str">'http://app.campaignmonitor.com'</span>
- <span class="ruby-ivar">@api</span> = <span class="ruby-value str">'/api/api.asmx/'</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
19 doc/classes/CampaignMonitor.src/M000003.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>request (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 73</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">params</span>)), { <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-regexp re">%r(List$|Campaign$|Subscriber$|Client$|SubscriberOpen$|SubscriberUnsubscribe$|SubscriberClick$|SubscriberBounce$)</span>, <span class="ruby-value str">'NoAttr'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span> })
- <span class="ruby-identifier">response</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
20 doc/classes/CampaignMonitor.src/M000004.html
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>request_url (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 79</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
- <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;#{@host}#{@api}/#{method}?ApiKey=#{@api_key}&quot;</span>
- <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&amp;#{key}=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>][<span class="ruby-identifier">key</span>].<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
- <span class="ruby-identifier">url</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000005.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>http_get (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 86</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">url</span>)
- <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>)).<span class="ruby-identifier">body</span>.<span class="ruby-identifier">to_s</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000006.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>method_missing (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 92</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
- <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method_id</span>.<span class="ruby-identifier">id2name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/_/</span>, <span class="ruby-value str">'.'</span>), <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>])
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
23 doc/classes/CampaignMonitor.src/M000007.html
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>clients (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 105</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clients</span>
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">User_GetClients</span>()
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
- <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Client&quot;</span>].<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;ClientID&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;Name&quot;</span>])}
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>]
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
23 doc/classes/CampaignMonitor.src/M000008.html
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>campaigns (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 123</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaigns</span>(<span class="ruby-identifier">client_id</span>)
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">Client_GetCampaigns</span>(<span class="ruby-value str">&quot;ClientID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">client_id</span>)
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
- <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Campaign&quot;</span>].<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-constant">Campaign</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;CampaignID&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;Subject&quot;</span>], <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;SentDate&quot;</span>], <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;TotalRecipients&quot;</span>].<span class="ruby-identifier">to_i</span>)}
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>]
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
23 doc/classes/CampaignMonitor.src/M000009.html
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>lists (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 141</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lists</span>(<span class="ruby-identifier">client_id</span>)
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">Client_GetLists</span>(<span class="ruby-value str">&quot;ClientID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">client_id</span>)
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
- <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;List&quot;</span>].<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-constant">List</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">l</span>[<span class="ruby-value str">&quot;ListID&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">l</span>[<span class="ruby-value str">&quot;Name&quot;</span>])}
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>]
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
19 doc/classes/CampaignMonitor.src/M000010.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>add_subscriber (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 159</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_subscriber</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">email</span>, <span class="ruby-identifier">name</span>)
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">Subscriber_Add</span>(<span class="ruby-value str">&quot;ListID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">list_id</span>, <span class="ruby-value str">&quot;Email&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">email</span>, <span class="ruby-value str">&quot;Name&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">name</span>)
- <span class="ruby-constant">Result</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>], <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
19 doc/classes/CampaignMonitor.src/M000011.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>subscriber_unsubscribe (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 114</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_unsubscribe</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">email</span>)
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">request</span>(<span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscriber.Unsubscribe'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Email=#{email}&quot;</span>)
- <span class="ruby-constant">CMResult</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;Result&quot;</span>][<span class="ruby-value str">&quot;Message&quot;</span>], <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;Result&quot;</span>][<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000012.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>subscriber_get_active (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 119</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_get_active</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">since_date</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Subscriber&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscribers.GetActive'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Date=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">since_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">&quot;%Y-%m-%d %H:%M:%S&quot;</span>))
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000013.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>subscriber_get_unsubscribed (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 123</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_get_unsubscribed</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">since_date</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Subscriber&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscribers.GetUnsubscribed'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Date=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">since_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">&quot;%Y-%m-%d %H:%M:%S&quot;</span>))
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000014.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>subscriber_get_bounced (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 127</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_get_bounced</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">since_date</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Subscriber&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscribers.GetBounced'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Date=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">since_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">&quot;%Y-%m-%d %H:%M:%S&quot;</span>))
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
19 doc/classes/CampaignMonitor.src/M000015.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>campaign_get_summary (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 134</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_summary</span>(<span class="ruby-identifier">campaign_id</span>)
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">request</span>(<span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetSummary&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>)
- <span class="ruby-constant">CMCampaignSummary</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Recipients&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;TotalOpened&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Clicks&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Unsubscribed&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Bounced&quot;</span>].<span class="ruby-identifier">to_i</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000016.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>campaign_get_opens (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 139</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_opens</span>(<span class="ruby-identifier">campaign_id</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberOpen&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetOpens&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000017.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>campaign_get_bounces (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 143</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_bounces</span>(<span class="ruby-identifier">campaign_id</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberBounce&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetBounces&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000018.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>campaign_get_subscriber_clicks (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 147</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_subscriber_clicks</span>(<span class="ruby-identifier">campaign_id</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberClick&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetClicks&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000019.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>campaign_get_unsubscribes (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 151</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_unsubscribes</span>(<span class="ruby-identifier">campaign_id</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberUnsubscribe&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Campaign.GetUnsubscribes'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000020.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>client_get_lists (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 157</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_get_lists</span>(<span class="ruby-identifier">client_id</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;List&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Client.GetLists'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ClientID=#{client_id}&quot;</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000021.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>client_get_campaigns (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 161</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_get_campaigns</span>(<span class="ruby-identifier">client_id</span>)
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Campaign&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Client.GetCampaigns'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ClientID=#{client_id}&quot;</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000022.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>user_get_clients (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 169</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">user_get_clients</span>
- <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Client&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'User.GetClients'</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000023.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>user_get_system_date (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 173</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">user_get_system_date</span>
- <span class="ruby-identifier">request</span>(<span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'User.GetSystemDate'</span>))[<span class="ruby-value str">&quot;anyType&quot;</span>]
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
29 doc/classes/CampaignMonitor.src/M000024.html
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>request (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 180</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span> = {}, <span class="ruby-identifier">second_try</span> = <span class="ruby-keyword kw">false</span>)
- <span class="ruby-comment cmt">#response = post(path, convert_body(parameters), &quot;Content-Type&quot; =&gt; content_type)</span>
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span>(<span class="ruby-identifier">path</span>)
-
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">code</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-value">100</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>
- <span class="ruby-identifier">result</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>, <span class="ruby-value str">'keeproot'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">'NoAttr'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
- <span class="ruby-comment cmt">#typecast_value(result)</span>
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;302&quot;</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">second_try</span>
- <span class="ruby-identifier">connect!</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-operator">!</span><span class="ruby-ivar">@use_ssl</span>)
- <span class="ruby-identifier">request</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>, <span class="ruby-keyword kw">true</span>)
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;#{response.message} (#{response.code})&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
19 doc/classes/CampaignMonitor.src/M000025.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>record (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 197</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">record</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>={})
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">get</span>(<span class="ruby-identifier">path</span>)
- (<span class="ruby-identifier">result</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">Record</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">first</span>, <span class="ruby-identifier">result</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">first</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
21 doc/classes/CampaignMonitor.src/M000026.html
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>records (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 208</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">records</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>={})
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">request</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>).<span class="ruby-identifier">values</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> []
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">result</span>[<span class="ruby-identifier">node</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> []
- <span class="ruby-identifier">result</span> = [<span class="ruby-identifier">result</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Array</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">result</span>
- <span class="ruby-identifier">result</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span> <span class="ruby-constant">Record</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">row</span>) }
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
20 doc/classes/CampaignMonitor.src/M000027.html
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>new (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 64</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">api_key</span>=<span class="ruby-constant">CAMPAIGN_MONITOR_API_KEY</span>)
- <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
- <span class="ruby-ivar">@host</span> = <span class="ruby-value str">'http://app.campaignmonitor.com'</span>
- <span class="ruby-ivar">@api</span> = <span class="ruby-value str">'/api/api.asmx/'</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
19 doc/classes/CampaignMonitor.src/M000028.html
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>request (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 72</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">params</span>)), { <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-regexp re">%r(List$|Campaign$|Subscriber$|Client$|SubscriberOpen$|SubscriberUnsubscribe$|SubscriberClick$|SubscriberBounce$)</span>, <span class="ruby-value str">'NoAttr'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span> })
- <span class="ruby-identifier">response</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
20 doc/classes/CampaignMonitor.src/M000029.html
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>request_url (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 78</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
- <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;#{@host}#{@api}/#{method}?ApiKey=#{@api_key}&quot;</span>
- <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&amp;#{key}=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>][<span class="ruby-identifier">key</span>].<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
- <span class="ruby-identifier">url</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000030.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>http_get (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 85</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">url</span>)
- <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>)).<span class="ruby-identifier">body</span>.<span class="ruby-identifier">to_s</span>
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
18 doc/classes/CampaignMonitor.src/M000031.html
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>method_missing (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 89</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
- <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method_id</span>.<span class="ruby-identifier">id2name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/_/</span>, <span class="ruby-value str">'.'</span>), <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>])
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
View
23 doc/classes/CampaignMonitor.src/M000032.html
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>clients (CampaignMonitor)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 93</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clients</span>
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">User_GetClients</span&g