postful 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. data/doc/classes/Postful/AuthorizationException.html +111 -0
  2. data/doc/classes/Postful/Base.html +255 -0
  3. data/doc/classes/Postful/Base.src/M000001.html +21 -0
  4. data/doc/classes/Postful/Base.src/M000002.html +23 -0
  5. data/doc/classes/Postful/Base.src/M000003.html +22 -0
  6. data/doc/classes/Postful/Base.src/M000004.html +22 -0
  7. data/doc/classes/Postful/Base.src/M000005.html +20 -0
  8. data/doc/classes/Postful/Base.src/M000006.html +18 -0
  9. data/doc/classes/Postful/InternalServerError.html +111 -0
  10. data/doc/classes/Postful/Letter.html +347 -0
  11. data/doc/classes/Postful/Letter.src/M000015.html +18 -0
  12. data/doc/classes/Postful/Letter.src/M000016.html +18 -0
  13. data/doc/classes/Postful/Letter.src/M000017.html +18 -0
  14. data/doc/classes/Postful/Letter.src/M000018.html +18 -0
  15. data/doc/classes/Postful/Letter.src/M000019.html +18 -0
  16. data/doc/classes/Postful/Letter.src/M000020.html +18 -0
  17. data/doc/classes/Postful/Letter.src/M000021.html +18 -0
  18. data/doc/classes/Postful/Letter.src/M000022.html +18 -0
  19. data/doc/classes/Postful/Letter.src/M000023.html +18 -0
  20. data/doc/classes/Postful/Letter.src/M000024.html +18 -0
  21. data/doc/classes/Postful/Letter.src/M000025.html +18 -0
  22. data/doc/classes/Postful/Letter.src/M000026.html +18 -0
  23. data/doc/classes/Postful/NotFoundException.html +111 -0
  24. data/doc/classes/Postful/Order.html +276 -0
  25. data/doc/classes/Postful/Order.src/M000007.html +19 -0
  26. data/doc/classes/Postful/Order.src/M000008.html +24 -0
  27. data/doc/classes/Postful/Order.src/M000009.html +26 -0
  28. data/doc/classes/Postful/Order.src/M000010.html +18 -0
  29. data/doc/classes/Postful/Service.html +191 -0
  30. data/doc/classes/Postful/Service.src/M000011.html +19 -0
  31. data/doc/classes/Postful/Service.src/M000012.html +24 -0
  32. data/doc/classes/Postful/Service.src/M000013.html +19 -0
  33. data/doc/classes/Postful/Service.src/M000014.html +24 -0
  34. data/doc/classes/Postful/UnknownResponseException.html +111 -0
  35. data/doc/classes/Postful/ValidationException.html +111 -0
  36. data/doc/created.rid +1 -0
  37. data/doc/files/MIT-LICENSE.html +129 -0
  38. data/doc/files/README.html +164 -0
  39. data/doc/files/lib/postful/base_rb.html +108 -0
  40. data/doc/files/lib/postful/instance_exec_module_rb.html +101 -0
  41. data/doc/files/lib/postful/letter_rb.html +109 -0
  42. data/doc/files/lib/postful/order_rb.html +110 -0
  43. data/doc/files/lib/postful/service_rb.html +109 -0
  44. data/doc/files/lib/postful/util_rb.html +101 -0
  45. data/doc/files/lib/postful_rb.html +110 -0
  46. data/doc/fr_class_index.html +35 -0
  47. data/doc/fr_file_index.html +35 -0
  48. data/doc/fr_method_index.html +52 -0
  49. data/doc/index.html +24 -0
  50. data/doc/rdoc-style.css +208 -0
  51. data/lib/postful.rb +3 -0
  52. data/lib/postful/base.rb +163 -0
  53. data/lib/postful/instance_exec_module.rb +25 -0
  54. data/lib/postful/letter.rb +134 -0
  55. data/lib/postful/order.rb +130 -0
  56. data/lib/postful/service.rb +40 -0
  57. data/lib/postful/util.rb +69 -0
  58. data/test/suite.rb +5 -0
  59. data/test/test_base.rb +131 -0
  60. data/test/test_letter.rb +115 -0
  61. data/test/test_order.rb +49 -0
  62. data/test/test_postcard.rb +12 -0
  63. data/test/test_service.rb +52 -0
  64. metadata +128 -0
@@ -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 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>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
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>errors (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 63</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">errors</span>
15
+ <span class="ruby-ivar">@errors</span> <span class="ruby-operator">||=</span> []
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,111 @@
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::InternalServerError</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::InternalServerError</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/postful/base_rb.html">
59
+ lib/postful/base.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
+ StandardError
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
+
86
+ </div>
87
+
88
+
89
+ <!-- if includes -->
90
+
91
+ <div id="section">
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <!-- if method_list -->
101
+
102
+
103
+ </div>
104
+
105
+
106
+ <div id="validator-badges">
107
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
+ </div>
109
+
110
+ </body>
111
+ </html>
@@ -0,0 +1,347 @@
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::Letter</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::Letter</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/postful/letter_rb.html">
59
+ lib/postful/letter.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
+ <a href="Base.html">
69
+ Base
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ Builder for mailing letters with the Postful Web <a
86
+ href="Service.html">Service</a>.
87
+ </p>
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000015">add_html_document</a>&nbsp;&nbsp;
99
+ <a href="#M000016">add_html_document_from_file</a>&nbsp;&nbsp;
100
+ <a href="#M000021">add_open_office_document</a>&nbsp;&nbsp;
101
+ <a href="#M000022">add_open_office_document_from_file</a>&nbsp;&nbsp;
102
+ <a href="#M000025">add_pdf_document</a>&nbsp;&nbsp;
103
+ <a href="#M000026">add_pdf_document_from_file</a>&nbsp;&nbsp;
104
+ <a href="#M000019">add_rtf_document</a>&nbsp;&nbsp;
105
+ <a href="#M000020">add_rtf_document_from_file</a>&nbsp;&nbsp;
106
+ <a href="#M000023">add_text_document</a>&nbsp;&nbsp;
107
+ <a href="#M000024">add_text_document_from_file</a>&nbsp;&nbsp;
108
+ <a href="#M000017">add_word_document</a>&nbsp;&nbsp;
109
+ <a href="#M000018">add_word_document_from_file</a>&nbsp;&nbsp;
110
+ </div>
111
+ </div>
112
+
113
+ </div>
114
+
115
+
116
+ <!-- if includes -->
117
+
118
+ <div id="section">
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <!-- if method_list -->
128
+ <div id="methods">
129
+ <h3 class="section-bar">Public Instance methods</h3>
130
+
131
+ <div id="method-M000015" class="method-detail">
132
+ <a name="M000015"></a>
133
+
134
+ <div class="method-heading">
135
+ <a href="Letter.src/M000015.html" target="Code" class="method-signature"
136
+ onclick="popupCode('Letter.src/M000015.html');return false;">
137
+ <span class="method-name">add_html_document</span><span class="method-args">(text)</span>
138
+ </a>
139
+ </div>
140
+
141
+ <div class="method-description">
142
+ <p>
143
+ Add an HTML document to the request
144
+ </p>
145
+ </div>
146
+ </div>
147
+
148
+ <div id="method-M000016" class="method-detail">
149
+ <a name="M000016"></a>
150
+
151
+ <div class="method-heading">
152
+ <a href="Letter.src/M000016.html" target="Code" class="method-signature"
153
+ onclick="popupCode('Letter.src/M000016.html');return false;">
154
+ <span class="method-name">add_html_document_from_file</span><span class="method-args">(filename)</span>
155
+ </a>
156
+ </div>
157
+
158
+ <div class="method-description">
159
+ <p>
160
+ Add an HTML document to the request
161
+ </p>
162
+ </div>
163
+ </div>
164
+
165
+ <div id="method-M000021" class="method-detail">
166
+ <a name="M000021"></a>
167
+
168
+ <div class="method-heading">
169
+ <a href="Letter.src/M000021.html" target="Code" class="method-signature"
170
+ onclick="popupCode('Letter.src/M000021.html');return false;">
171
+ <span class="method-name">add_open_office_document</span><span class="method-args">(text)</span>
172
+ </a>
173
+ </div>
174
+
175
+ <div class="method-description">
176
+ <p>
177
+ Add an Open Office document to the request
178
+ </p>
179
+ </div>
180
+ </div>
181
+
182
+ <div id="method-M000022" class="method-detail">
183
+ <a name="M000022"></a>
184
+
185
+ <div class="method-heading">
186
+ <a href="Letter.src/M000022.html" target="Code" class="method-signature"
187
+ onclick="popupCode('Letter.src/M000022.html');return false;">
188
+ <span class="method-name">add_open_office_document_from_file</span><span class="method-args">(filename)</span>
189
+ </a>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+ <p>
194
+ Add an Open Office document to the request
195
+ </p>
196
+ </div>
197
+ </div>
198
+
199
+ <div id="method-M000025" class="method-detail">
200
+ <a name="M000025"></a>
201
+
202
+ <div class="method-heading">
203
+ <a href="Letter.src/M000025.html" target="Code" class="method-signature"
204
+ onclick="popupCode('Letter.src/M000025.html');return false;">
205
+ <span class="method-name">add_pdf_document</span><span class="method-args">(text)</span>
206
+ </a>
207
+ </div>
208
+
209
+ <div class="method-description">
210
+ <p>
211
+ Add a PDF document to the request
212
+ </p>
213
+ </div>
214
+ </div>
215
+
216
+ <div id="method-M000026" class="method-detail">
217
+ <a name="M000026"></a>
218
+
219
+ <div class="method-heading">
220
+ <a href="Letter.src/M000026.html" target="Code" class="method-signature"
221
+ onclick="popupCode('Letter.src/M000026.html');return false;">
222
+ <span class="method-name">add_pdf_document_from_file</span><span class="method-args">(filename)</span>
223
+ </a>
224
+ </div>
225
+
226
+ <div class="method-description">
227
+ <p>
228
+ Add a PDF document to the request
229
+ </p>
230
+ </div>
231
+ </div>
232
+
233
+ <div id="method-M000019" class="method-detail">
234
+ <a name="M000019"></a>
235
+
236
+ <div class="method-heading">
237
+ <a href="Letter.src/M000019.html" target="Code" class="method-signature"
238
+ onclick="popupCode('Letter.src/M000019.html');return false;">
239
+ <span class="method-name">add_rtf_document</span><span class="method-args">(text)</span>
240
+ </a>
241
+ </div>
242
+
243
+ <div class="method-description">
244
+ <p>
245
+ Add a Rich Text Format document to the request
246
+ </p>
247
+ </div>
248
+ </div>
249
+
250
+ <div id="method-M000020" class="method-detail">
251
+ <a name="M000020"></a>
252
+
253
+ <div class="method-heading">
254
+ <a href="Letter.src/M000020.html" target="Code" class="method-signature"
255
+ onclick="popupCode('Letter.src/M000020.html');return false;">
256
+ <span class="method-name">add_rtf_document_from_file</span><span class="method-args">(filename)</span>
257
+ </a>
258
+ </div>
259
+
260
+ <div class="method-description">
261
+ <p>
262
+ Add a Rich Text Format document to the request
263
+ </p>
264
+ </div>
265
+ </div>
266
+
267
+ <div id="method-M000023" class="method-detail">
268
+ <a name="M000023"></a>
269
+
270
+ <div class="method-heading">
271
+ <a href="Letter.src/M000023.html" target="Code" class="method-signature"
272
+ onclick="popupCode('Letter.src/M000023.html');return false;">
273
+ <span class="method-name">add_text_document</span><span class="method-args">(text)</span>
274
+ </a>
275
+ </div>
276
+
277
+ <div class="method-description">
278
+ <p>
279
+ Add a text document to the request
280
+ </p>
281
+ </div>
282
+ </div>
283
+
284
+ <div id="method-M000024" class="method-detail">
285
+ <a name="M000024"></a>
286
+
287
+ <div class="method-heading">
288
+ <a href="Letter.src/M000024.html" target="Code" class="method-signature"
289
+ onclick="popupCode('Letter.src/M000024.html');return false;">
290
+ <span class="method-name">add_text_document_from_file</span><span class="method-args">(filename)</span>
291
+ </a>
292
+ </div>
293
+
294
+ <div class="method-description">
295
+ <p>
296
+ Add a text document to the request
297
+ </p>
298
+ </div>
299
+ </div>
300
+
301
+ <div id="method-M000017" class="method-detail">
302
+ <a name="M000017"></a>
303
+
304
+ <div class="method-heading">
305
+ <a href="Letter.src/M000017.html" target="Code" class="method-signature"
306
+ onclick="popupCode('Letter.src/M000017.html');return false;">
307
+ <span class="method-name">add_word_document</span><span class="method-args">(text)</span>
308
+ </a>
309
+ </div>
310
+
311
+ <div class="method-description">
312
+ <p>
313
+ Add a Microsoft Word document to the request
314
+ </p>
315
+ </div>
316
+ </div>
317
+
318
+ <div id="method-M000018" class="method-detail">
319
+ <a name="M000018"></a>
320
+
321
+ <div class="method-heading">
322
+ <a href="Letter.src/M000018.html" target="Code" class="method-signature"
323
+ onclick="popupCode('Letter.src/M000018.html');return false;">
324
+ <span class="method-name">add_word_document_from_file</span><span class="method-args">(filename)</span>
325
+ </a>
326
+ </div>
327
+
328
+ <div class="method-description">
329
+ <p>
330
+ Add a Microsoft Word document to the request
331
+ </p>
332
+ </div>
333
+ </div>
334
+
335
+
336
+ </div>
337
+
338
+
339
+ </div>
340
+
341
+
342
+ <div id="validator-badges">
343
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
344
+ </div>
345
+
346
+ </body>
347
+ </html>