postful 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/doc/classes/Postful/Base.html +85 -28
  2. data/doc/classes/Postful/Base.src/M000004.html +8 -8
  3. data/doc/classes/Postful/Base.src/M000005.html +8 -6
  4. data/doc/classes/Postful/Base.src/{M000002.html → M000007.html} +1 -1
  5. data/doc/classes/Postful/Base.src/{M000003.html → M000008.html} +1 -1
  6. data/doc/classes/Postful/Base.src/M000009.html +22 -0
  7. data/doc/classes/Postful/Base.src/M000010.html +20 -0
  8. data/doc/classes/Postful/Base.src/{M000006.html → M000011.html} +1 -1
  9. data/doc/classes/Postful/Base.src/M000012.html +20 -0
  10. data/doc/classes/Postful/Document.html +176 -0
  11. data/doc/classes/Postful/{Base.src/M000001.html → Document.src/M000026.html} +2 -4
  12. data/doc/classes/Postful/Document.src/M000027.html +18 -0
  13. data/doc/classes/Postful/Document.src/M000028.html +18 -0
  14. data/doc/classes/Postful/Letter.html +168 -60
  15. data/doc/classes/Postful/Letter.src/{M000018.html → M000041.html} +2 -2
  16. data/doc/classes/Postful/Letter.src/{M000019.html → M000042.html} +2 -2
  17. data/doc/classes/Postful/Letter.src/M000043.html +18 -0
  18. data/doc/classes/Postful/Letter.src/{M000020.html → M000044.html} +2 -2
  19. data/doc/classes/Postful/Letter.src/{M000021.html → M000045.html} +2 -2
  20. data/doc/classes/Postful/Letter.src/M000046.html +18 -0
  21. data/doc/classes/Postful/Letter.src/{M000022.html → M000047.html} +2 -2
  22. data/doc/classes/Postful/Letter.src/{M000023.html → M000048.html} +2 -2
  23. data/doc/classes/Postful/Letter.src/M000049.html +18 -0
  24. data/doc/classes/Postful/Letter.src/{M000024.html → M000050.html} +2 -2
  25. data/doc/classes/Postful/Letter.src/{M000025.html → M000051.html} +2 -2
  26. data/doc/classes/Postful/Letter.src/M000052.html +18 -0
  27. data/doc/classes/Postful/Letter.src/{M000026.html → M000053.html} +2 -2
  28. data/doc/classes/Postful/Letter.src/{M000027.html → M000054.html} +2 -2
  29. data/doc/classes/Postful/Letter.src/M000055.html +18 -0
  30. data/doc/classes/Postful/Letter.src/{M000028.html → M000056.html} +2 -2
  31. data/doc/classes/Postful/Letter.src/{M000029.html → M000057.html} +2 -2
  32. data/doc/classes/Postful/Letter.src/M000058.html +18 -0
  33. data/doc/classes/Postful/Order.html +20 -20
  34. data/doc/classes/Postful/Order.src/{M000007.html → M000013.html} +0 -0
  35. data/doc/classes/Postful/Order.src/{M000008.html → M000014.html} +0 -0
  36. data/doc/classes/Postful/Order.src/{M000009.html → M000015.html} +0 -0
  37. data/doc/classes/Postful/Order.src/{M000010.html → M000016.html} +0 -0
  38. data/doc/classes/Postful/Postcard.html +15 -15
  39. data/doc/classes/Postful/Postcard.src/{M000011.html → M000023.html} +0 -0
  40. data/doc/classes/Postful/Postcard.src/{M000012.html → M000024.html} +0 -0
  41. data/doc/classes/Postful/Postcard.src/{M000013.html → M000025.html} +0 -0
  42. data/doc/classes/Postful/Section.html +221 -0
  43. data/doc/classes/Postful/Section.src/M000017.html +21 -0
  44. data/doc/classes/Postful/Section.src/M000018.html +18 -0
  45. data/doc/classes/Postful/Section.src/M000019.html +20 -0
  46. data/doc/classes/Postful/Section.src/M000020.html +18 -0
  47. data/doc/classes/Postful/Section.src/M000021.html +25 -0
  48. data/doc/classes/Postful/Section.src/M000022.html +22 -0
  49. data/doc/classes/Postful/Service.html +20 -20
  50. data/doc/classes/Postful/Service.src/{M000014.html → M000037.html} +0 -0
  51. data/doc/classes/Postful/Service.src/{M000015.html → M000038.html} +0 -0
  52. data/doc/classes/Postful/Service.src/{M000016.html → M000039.html} +0 -0
  53. data/doc/classes/Postful/Service.src/{M000017.html → M000040.html} +0 -0
  54. data/doc/classes/Postful/SimpleDocument.html +197 -0
  55. data/doc/classes/Postful/SimpleDocument.src/M000001.html +22 -0
  56. data/doc/classes/Postful/SimpleDocument.src/M000002.html +18 -0
  57. data/doc/classes/Postful/SimpleDocument.src/M000003.html +29 -0
  58. data/doc/classes/Postful/TemplateDocument.html +274 -0
  59. data/doc/classes/Postful/TemplateDocument.src/M000029.html +36 -0
  60. data/doc/classes/Postful/TemplateDocument.src/M000030.html +22 -0
  61. data/doc/classes/Postful/TemplateDocument.src/M000031.html +18 -0
  62. data/doc/classes/Postful/TemplateDocument.src/M000033.html +21 -0
  63. data/doc/classes/Postful/TemplateDocument.src/M000035.html +18 -0
  64. data/doc/classes/Postful/TemplateDocument.src/M000036.html +20 -0
  65. data/doc/created.rid +1 -1
  66. data/doc/files/MIT-LICENSE.html +1 -1
  67. data/doc/files/README.html +1 -1
  68. data/doc/files/lib/postful/base_rb.html +1 -1
  69. data/doc/files/lib/postful/document_rb.html +101 -0
  70. data/doc/files/lib/postful/instance_exec_module_rb.html +1 -1
  71. data/doc/files/lib/postful/letter_rb.html +1 -1
  72. data/doc/files/lib/postful/order_rb.html +1 -1
  73. data/doc/files/lib/postful/postcard_rb.html +1 -1
  74. data/doc/files/lib/postful/section_rb.html +101 -0
  75. data/doc/files/lib/postful/service_rb.html +1 -1
  76. data/doc/files/lib/postful/simple_document_rb.html +101 -0
  77. data/doc/files/lib/postful/template_document_rb.html +101 -0
  78. data/doc/files/lib/postful/util_rb.html +1 -1
  79. data/doc/files/lib/postful_rb.html +1 -1
  80. data/doc/fr_class_index.html +4 -0
  81. data/doc/fr_file_index.html +4 -0
  82. data/doc/fr_method_index.html +58 -29
  83. data/lib/postful/base.rb +20 -0
  84. data/lib/postful/document.rb +18 -0
  85. data/lib/postful/letter.rb +55 -48
  86. data/lib/postful/postcard.rb +4 -0
  87. data/lib/postful/section.rb +46 -0
  88. data/lib/postful/simple_document.rb +38 -0
  89. data/lib/postful/template_document.rb +66 -0
  90. data/lib/postful/util.rb +70 -21
  91. data/test/test_base.rb +71 -0
  92. data/test/test_letter.rb +6 -0
  93. data/test/test_postcard.rb +13 -1
  94. metadata +71 -29
@@ -86,12 +86,15 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000002">add_address</a>&nbsp;&nbsp;
90
- <a href="#M000003">add_international_address</a>&nbsp;&nbsp;
91
- <a href="#M000006">errors</a>&nbsp;&nbsp;
92
- <a href="#M000004">mail!</a>&nbsp;&nbsp;
93
- <a href="#M000001">new</a>&nbsp;&nbsp;
94
- <a href="#M000005">valid?</a>&nbsp;&nbsp;
89
+ <a href="#M000007">add_address</a>&nbsp;&nbsp;
90
+ <a href="#M000005">add_document</a>&nbsp;&nbsp;
91
+ <a href="#M000008">add_international_address</a>&nbsp;&nbsp;
92
+ <a href="#M000006">document</a>&nbsp;&nbsp;
93
+ <a href="#M000011">errors</a>&nbsp;&nbsp;
94
+ <a href="#M000009">mail!</a>&nbsp;&nbsp;
95
+ <a href="#M000004">new</a>&nbsp;&nbsp;
96
+ <a href="#M000012">upload_assets</a>&nbsp;&nbsp;
97
+ <a href="#M000010">valid?</a>&nbsp;&nbsp;
95
98
  </div>
96
99
  </div>
97
100
 
@@ -123,6 +126,11 @@
123
126
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
124
127
  <td class="context-item-desc"></td>
125
128
  </tr>
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">sections</td>
131
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
132
+ <td class="context-item-desc"></td>
133
+ </tr>
126
134
  <tr class="top-aligned-row context-row">
127
135
  <td class="context-item-name">tag1</td>
128
136
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
@@ -148,12 +156,12 @@
148
156
  <div id="methods">
149
157
  <h3 class="section-bar">Public Class methods</h3>
150
158
 
151
- <div id="method-M000001" class="method-detail">
152
- <a name="M000001"></a>
159
+ <div id="method-M000004" class="method-detail">
160
+ <a name="M000004"></a>
153
161
 
154
162
  <div class="method-heading">
155
- <a href="Base.src/M000001.html" target="Code" class="method-signature"
156
- onclick="popupCode('Base.src/M000001.html');return false;">
163
+ <a href="Base.src/M000004.html" target="Code" class="method-signature"
164
+ onclick="popupCode('Base.src/M000004.html');return false;">
157
165
  <span class="method-name">new</span><span class="method-args">(email, password)</span>
158
166
  </a>
159
167
  </div>
@@ -164,12 +172,12 @@
164
172
 
165
173
  <h3 class="section-bar">Public Instance methods</h3>
166
174
 
167
- <div id="method-M000002" class="method-detail">
168
- <a name="M000002"></a>
175
+ <div id="method-M000007" class="method-detail">
176
+ <a name="M000007"></a>
169
177
 
170
178
  <div class="method-heading">
171
- <a href="Base.src/M000002.html" target="Code" class="method-signature"
172
- onclick="popupCode('Base.src/M000002.html');return false;">
179
+ <a href="Base.src/M000007.html" target="Code" class="method-signature"
180
+ onclick="popupCode('Base.src/M000007.html');return false;">
173
181
  <span class="method-name">add_address</span><span class="method-args">(attributes = {})</span>
174
182
  </a>
175
183
  </div>
@@ -181,12 +189,31 @@ Add a domestic recipient to a mailing
181
189
  </div>
182
190
  </div>
183
191
 
184
- <div id="method-M000003" class="method-detail">
185
- <a name="M000003"></a>
192
+ <div id="method-M000005" class="method-detail">
193
+ <a name="M000005"></a>
194
+
195
+ <div class="method-heading">
196
+ <a href="Base.src/M000005.html" target="Code" class="method-signature"
197
+ onclick="popupCode('Base.src/M000005.html');return false;">
198
+ <span class="method-name">add_document</span><span class="method-args">(name, options = {}, &amp;block)</span>
199
+ </a>
200
+ </div>
201
+
202
+ <div class="method-description">
203
+ <p>
204
+ Adds a <a href="Base.html#M000004">new</a> <a
205
+ href="Base.html#M000006">document</a> to the request that should be
206
+ customized by setting section properties
207
+ </p>
208
+ </div>
209
+ </div>
210
+
211
+ <div id="method-M000008" class="method-detail">
212
+ <a name="M000008"></a>
186
213
 
187
214
  <div class="method-heading">
188
- <a href="Base.src/M000003.html" target="Code" class="method-signature"
189
- onclick="popupCode('Base.src/M000003.html');return false;">
215
+ <a href="Base.src/M000008.html" target="Code" class="method-signature"
216
+ onclick="popupCode('Base.src/M000008.html');return false;">
190
217
  <span class="method-name">add_international_address</span><span class="method-args">(lines, country)</span>
191
218
  </a>
192
219
  </div>
@@ -202,8 +229,22 @@ Add an international recipient to a mailing
202
229
  <a name="M000006"></a>
203
230
 
204
231
  <div class="method-heading">
205
- <a href="Base.src/M000006.html" target="Code" class="method-signature"
206
- onclick="popupCode('Base.src/M000006.html');return false;">
232
+ <span class="method-name">document</span><span class="method-args">(name, options = {}, &amp;block)</span>
233
+ </div>
234
+
235
+ <div class="method-description">
236
+ <p>
237
+ Alias for <a href="Base.html#M000005">add_document</a>
238
+ </p>
239
+ </div>
240
+ </div>
241
+
242
+ <div id="method-M000011" class="method-detail">
243
+ <a name="M000011"></a>
244
+
245
+ <div class="method-heading">
246
+ <a href="Base.src/M000011.html" target="Code" class="method-signature"
247
+ onclick="popupCode('Base.src/M000011.html');return false;">
207
248
  <span class="method-name">errors</span><span class="method-args">()</span>
208
249
  </a>
209
250
  </div>
@@ -212,12 +253,12 @@ Add an international recipient to a mailing
212
253
  </div>
213
254
  </div>
214
255
 
215
- <div id="method-M000004" class="method-detail">
216
- <a name="M000004"></a>
256
+ <div id="method-M000009" class="method-detail">
257
+ <a name="M000009"></a>
217
258
 
218
259
  <div class="method-heading">
219
- <a href="Base.src/M000004.html" target="Code" class="method-signature"
220
- onclick="popupCode('Base.src/M000004.html');return false;">
260
+ <a href="Base.src/M000009.html" target="Code" class="method-signature"
261
+ onclick="popupCode('Base.src/M000009.html');return false;">
221
262
  <span class="method-name">mail!</span><span class="method-args">()</span>
222
263
  </a>
223
264
  </div>
@@ -226,12 +267,12 @@ Add an international recipient to a mailing
226
267
  </div>
227
268
  </div>
228
269
 
229
- <div id="method-M000005" class="method-detail">
230
- <a name="M000005"></a>
270
+ <div id="method-M000010" class="method-detail">
271
+ <a name="M000010"></a>
231
272
 
232
273
  <div class="method-heading">
233
- <a href="Base.src/M000005.html" target="Code" class="method-signature"
234
- onclick="popupCode('Base.src/M000005.html');return false;">
274
+ <a href="Base.src/M000010.html" target="Code" class="method-signature"
275
+ onclick="popupCode('Base.src/M000010.html');return false;">
235
276
  <span class="method-name">valid?</span><span class="method-args">()</span>
236
277
  </a>
237
278
  </div>
@@ -240,6 +281,22 @@ Add an international recipient to a mailing
240
281
  </div>
241
282
  </div>
242
283
 
284
+ <h3 class="section-bar">Protected Instance methods</h3>
285
+
286
+ <div id="method-M000012" class="method-detail">
287
+ <a name="M000012"></a>
288
+
289
+ <div class="method-heading">
290
+ <a href="Base.src/M000012.html" target="Code" class="method-signature"
291
+ onclick="popupCode('Base.src/M000012.html');return false;">
292
+ <span class="method-name">upload_assets</span><span class="method-args">()</span>
293
+ </a>
294
+ </div>
295
+
296
+ <div class="method-description">
297
+ </div>
298
+ </div>
299
+
243
300
 
244
301
  </div>
245
302
 
@@ -5,18 +5,18 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>mail! (Postful::Base)</title>
8
+ <title>new (Postful::Base)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 49</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mail!</span>
15
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">valid?</span>
16
- <span class="ruby-identifier">raise</span> <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
17
- <span class="ruby-keyword kw">else</span>
18
- <span class="ruby-identifier">mail_without_validation!</span>
19
- <span class="ruby-keyword kw">end</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 25</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">email</span>, <span class="ruby-identifier">password</span>)
15
+ <span class="ruby-ivar">@email</span> = <span class="ruby-identifier">email</span>
16
+ <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
17
+ <span class="ruby-ivar">@documents</span> = []
18
+ <span class="ruby-ivar">@addressees</span> = []
19
+ <span class="ruby-ivar">@sections</span> = []
20
20
  <span class="ruby-keyword kw">end</span></pre>
21
21
  </body>
22
22
  </html>
@@ -5,16 +5,18 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>valid? (Postful::Base)</title>
8
+ <title>add_document (Postful::Base)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 57</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>
15
- <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">clear</span>
16
- <span class="ruby-identifier">validate</span>
17
- <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 34</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_document</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
15
+ <span class="ruby-identifier">returning</span> <span class="ruby-constant">TemplateDocument</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-ivar">@email</span>, <span class="ruby-ivar">@password</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">document</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-identifier">document</span>.<span class="ruby-identifier">instance_exec</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
17
+ <span class="ruby-identifier">document</span>.<span class="ruby-identifier">source</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:source</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:source</span>]
18
+ <span class="ruby-ivar">@documents</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">document</span>
19
+ <span class="ruby-keyword kw">end</span>
18
20
  <span class="ruby-keyword kw">end</span></pre>
19
21
  </body>
20
22
  </html>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 31</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 44</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_address</span>(<span class="ruby-identifier">attributes</span> = {})
15
15
  <span class="ruby-identifier">returning</span> <span class="ruby-constant">DomesticAddress</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">address</span><span class="ruby-operator">|</span>
16
16
  [<span class="ruby-identifier">:name</span>, <span class="ruby-identifier">:company</span>, <span class="ruby-identifier">:address</span>, <span class="ruby-identifier">:address2</span>, <span class="ruby-identifier">:city</span>, <span class="ruby-identifier">:state</span>, <span class="ruby-identifier">:postal_code</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">field</span><span class="ruby-operator">|</span>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 41</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 54</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_international_address</span>(<span class="ruby-identifier">lines</span>, <span class="ruby-identifier">country</span>)
15
15
  <span class="ruby-identifier">returning</span> <span class="ruby-constant">InternationalAddress</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">address</span><span class="ruby-operator">|</span>
16
16
  <span class="ruby-identifier">address</span>.<span class="ruby-identifier">lines</span> = <span class="ruby-identifier">lines</span>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>mail! (Postful::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 62</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mail!</span>
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">valid?</span>
16
+ <span class="ruby-identifier">raise</span> <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
17
+ <span class="ruby-keyword kw">else</span>
18
+ <span class="ruby-identifier">mail_without_validation!</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>valid? (Postful::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 70</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>
15
+ <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">clear</span>
16
+ <span class="ruby-identifier">validate</span>
17
+ <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 63</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 76</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">errors</span>
15
15
  <span class="ruby-ivar">@errors</span> <span class="ruby-operator">||=</span> []
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>upload_assets (Postful::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/postful/base.rb, line 114</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload_assets</span>
15
+ <span class="ruby-ivar">@documents</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">document</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-identifier">document</span>.<span class="ruby-identifier">do_upload</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">document</span>.<span class="ruby-identifier">requires_upload?</span>
17
+ <span class="ruby-keyword kw">end</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,176 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Postful::Document</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Postful::Document</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/postful/document_rb.html">
59
+ lib/postful/document.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000028">do_upload</a>&nbsp;&nbsp;
90
+ <a href="#M000026">new</a>&nbsp;&nbsp;
91
+ <a href="#M000027">requires_upload?</a>&nbsp;&nbsp;
92
+ </div>
93
+ </div>
94
+
95
+ </div>
96
+
97
+
98
+ <!-- if includes -->
99
+ <div id="includes">
100
+ <h3 class="section-bar">Included Modules</h3>
101
+
102
+ <div id="includes-list">
103
+ <span class="include-name">Util</span>
104
+ </div>
105
+ </div>
106
+
107
+ <div id="section">
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <!-- if method_list -->
117
+ <div id="methods">
118
+ <h3 class="section-bar">Public Class methods</h3>
119
+
120
+ <div id="method-M000026" class="method-detail">
121
+ <a name="M000026"></a>
122
+
123
+ <div class="method-heading">
124
+ <a href="Document.src/M000026.html" target="Code" class="method-signature"
125
+ onclick="popupCode('Document.src/M000026.html');return false;">
126
+ <span class="method-name">new</span><span class="method-args">(email, password)</span>
127
+ </a>
128
+ </div>
129
+
130
+ <div class="method-description">
131
+ </div>
132
+ </div>
133
+
134
+ <h3 class="section-bar">Public Instance methods</h3>
135
+
136
+ <div id="method-M000028" class="method-detail">
137
+ <a name="M000028"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="Document.src/M000028.html" target="Code" class="method-signature"
141
+ onclick="popupCode('Document.src/M000028.html');return false;">
142
+ <span class="method-name">do_upload</span><span class="method-args">()</span>
143
+ </a>
144
+ </div>
145
+
146
+ <div class="method-description">
147
+ </div>
148
+ </div>
149
+
150
+ <div id="method-M000027" class="method-detail">
151
+ <a name="M000027"></a>
152
+
153
+ <div class="method-heading">
154
+ <a href="Document.src/M000027.html" target="Code" class="method-signature"
155
+ onclick="popupCode('Document.src/M000027.html');return false;">
156
+ <span class="method-name">requires_upload?</span><span class="method-args">()</span>
157
+ </a>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+ </div>
162
+ </div>
163
+
164
+
165
+ </div>
166
+
167
+
168
+ </div>
169
+
170
+
171
+ <div id="validator-badges">
172
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
173
+ </div>
174
+
175
+ </body>
176
+ </html>