openpayu 0.0.2 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +26 -21
  3. data/doc/EmptyResponseError.html +4 -4
  4. data/doc/HttpStatusException.html +4 -4
  5. data/doc/NotImplementedException.html +4 -4
  6. data/doc/OpenPayU.html +13 -13
  7. data/doc/OpenPayU/Configuration.html +19 -17
  8. data/doc/OpenPayU/Connection.html +35 -43
  9. data/doc/OpenPayU/Document.html +24 -228
  10. data/doc/OpenPayU/Documents.html +4 -4
  11. data/doc/OpenPayU/Documents/Request.html +5 -5
  12. data/doc/OpenPayU/Documents/Response.html +72 -120
  13. data/doc/OpenPayU/Models.html +5 -5
  14. data/doc/OpenPayU/Models/Address.html +5 -6
  15. data/doc/OpenPayU/Models/Buyer.html +5 -6
  16. data/doc/OpenPayU/Models/Buyer/Delivery.html +5 -6
  17. data/doc/OpenPayU/Models/Card.html +5 -6
  18. data/doc/OpenPayU/Models/Fee.html +5 -6
  19. data/doc/OpenPayU/Models/Model.html +122 -207
  20. data/doc/OpenPayU/Models/NotifyResponse.html +5 -6
  21. data/doc/OpenPayU/Models/Order.html +8 -9
  22. data/doc/OpenPayU/Models/PayMethod.html +5 -6
  23. data/doc/OpenPayU/Models/Product.html +5 -6
  24. data/doc/OpenPayU/Models/Refund.html +13 -102
  25. data/doc/OpenPayU/Models/ShippingMethod.html +13 -14
  26. data/doc/OpenPayU/Models/StatusUpdate.html +5 -6
  27. data/doc/OpenPayU/Models/Token.html +5 -6
  28. data/doc/OpenPayU/Order.html +53 -89
  29. data/doc/OpenPayU/Refund.html +6 -18
  30. data/doc/OpenPayU/Token.html +4 -4
  31. data/doc/WrongConfigurationError.html +4 -4
  32. data/doc/WrongNotifyRequest.html +4 -4
  33. data/doc/WrongOrderParameters.html +4 -4
  34. data/doc/WrongSignatureException.html +4 -4
  35. data/doc/_index.html +13 -31
  36. data/doc/class_list.html +1 -1
  37. data/doc/css/style.css +2 -1
  38. data/doc/file.README.html +38 -30
  39. data/doc/frames.html +1 -1
  40. data/doc/index.html +38 -30
  41. data/doc/js/app.js +7 -2
  42. data/doc/method_list.html +78 -120
  43. data/doc/top-level-namespace.html +4 -4
  44. data/lib/openpayu.rb +0 -1
  45. data/lib/openpayu/configuration.rb +1 -0
  46. data/lib/openpayu/connection.rb +28 -19
  47. data/lib/openpayu/document.rb +2 -38
  48. data/lib/openpayu/documents/response.rb +9 -20
  49. data/lib/openpayu/models/model.rb +4 -25
  50. data/lib/openpayu/models/order.rb +0 -1
  51. data/lib/openpayu/models/refund.rb +5 -27
  52. data/lib/openpayu/models/shipping_method.rb +2 -2
  53. data/lib/openpayu/order.rb +7 -25
  54. data/lib/openpayu/refund.rb +1 -7
  55. data/lib/openpayu/version.rb +1 -1
  56. data/openpayu_ruby.gemspec +0 -4
  57. data/spec/cassettes/cancel_order.yml +17 -26
  58. data/spec/cassettes/create_order.yml +19 -29
  59. data/spec/cassettes/retrieve_order.yml +18 -27
  60. data/spec/cassettes/update_order.yml +19 -28
  61. data/spec/integration/order_spec.rb +65 -78
  62. data/spec/openpayu.yml +2 -2
  63. data/spec/spec_helper.rb +5 -5
  64. data/spec/test_objects/order.rb +31 -56
  65. data/spec/unit/configuration_spec.rb +1 -1
  66. data/spec/unit/models/order_spec.rb +4 -34
  67. data/spec/unit/openpayu_spec.rb +2 -5
  68. metadata +55 -87
  69. data/lib/openpayu/xml_builder.rb +0 -23
  70. data/spec/cassettes/refund_order.yml +0 -100
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NmU5MTA2MGMwNmY3ZTE4ODJjOGMyODQ1NTBlZWJjMzAxZmQ1MTczMw==
5
- data.tar.gz: !binary |-
6
- OTQ4YWY1YzljNjFhMTE0NWEwN2IxYzNjMzZlZjM3N2RjZDQ2NWIwMQ==
2
+ SHA1:
3
+ metadata.gz: 852a10b9df58232b7097e636dbac61225d418d44
4
+ data.tar.gz: d91a624e64fdae3938bf7bf1667b94bd1d94c7e5
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZjJlYWEwYWMxNDVjMzRjYzI5MDEyZmQzNDg3MTBlNjQyOTEyOWZhZjA4MTY5
10
- ZjQ4NTdmMDY0MmEzODMyZTk4MDhkN2Y5NDQ1YTFmZTY4ZWI4Y2M5ODE3Y2Zj
11
- MjFiOGYzMDQ3NzIyZjU0MTY1MmI4NGJmNTQwM2UwNGFhYzAzOTY=
12
- data.tar.gz: !binary |-
13
- ZGE1YzRjMjVkMTA1OTMzZTY3MWYyZTk0MmY3ZDE0YmY4YjVmYmRkNDZhMWMy
14
- ZjUxYjg1YzhhZDZmY2U5ZTE3MDQzMmQ1MmUyNjgwYjc4OGI5OWE0MDJkYjQz
15
- NzYwYmE5NGI3YzYzMjk3ODcxYzkzM2JlMGI2NDdhMWI5MjU4ZTU=
6
+ metadata.gz: 0b2e7ed97b1075cfa343666130963c55a2f6253cbfd1f55488f3ace71adde993fcdd8237f3b4702a580feb094a4dd28e2dee92bbb88d22b611b5e862822b6641
7
+ data.tar.gz: aeb1706163aeb44632d3315e59d79db07523f0ae3a80d7f66de4fb26159caaf98d97755770a6c13b5b83af1dfa402f44a86ffb841e59ff17c745bdef45294c2e
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
- [![Build Status](https://magnum.travis-ci.com/PayU/openpayu_ruby_sdk.png?token=sqp5QvsmzqEqtVB3sNsK&branch=master)](https://magnum.travis-ci.com/PayU/openpayu_ruby_sdk)
2
1
  [![Code Climate](https://codeclimate.com/repos/524eb044f3ea00329815dff1/badges/885c2d52f25c02295344/gpa.png)](https://codeclimate.com/repos/524eb044f3ea00329815dff1/feed)
3
2
 
4
- # OpenpayuSdkRuby
3
+ # OpenPayU Ruby
5
4
 
6
5
  The OpenPayU Ruby library provides integration access to the PayU Gateway API ver. 2.
7
6
 
@@ -19,16 +18,16 @@ Or install it yourself as:
19
18
 
20
19
  $ gem install openpayu
21
20
 
21
+
22
22
  ##Configure Gem
23
23
  To configure OpenPayU environment add a file to config/initializers/openpayu.rb containing:
24
24
 
25
25
  OpenPayU::Configuration.configure do |config|
26
- config.merchant_pos_id = '8389534'
27
- config.signature_key = '95873498573498573897fb42d'
26
+ config.merchant_pos_id = '145227'
27
+ config.signature_key = '13a980d4f851f3d9a1cfc792fb1f5e50'
28
28
  config.algorithm = 'MD5' # MD5, SHA-1, SHA-256
29
29
  config.service_domain = 'payu.com'
30
30
  config.protocol = 'https'
31
- config.data_format = 'json' # json, xml
32
31
  config.env = 'secure'
33
32
  config.order_url = 'http://localhost/order'
34
33
  config.notify_url = 'http://localhost/notify'
@@ -42,23 +41,21 @@ Or install it yourself as:
42
41
  Structure of YAML file:
43
42
 
44
43
  development:
45
- merchant_pos_id: '8389534'
46
- signature_key: 95873498573498573897fb42d
44
+ merchant_pos_id: '145227'
45
+ signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
47
46
  algorithm: MD5 # MD5, SHA-1, SHA-256
48
47
  service_domain: payu.com
49
48
  protocol: https
50
- data_format: json # json, xml
51
49
  env: secure
52
50
  order_url: http://localhost/order
53
51
  notify_url: http://localhost/notify
54
52
  continue_url: http://localhost/success
55
53
  production:
56
- merchant_pos_id: '8389534'
57
- signature_key: 95873498573498573897fb42d
54
+ merchant_pos_id: '145227'
55
+ signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
58
56
  algorithm: MD5 # MD5, SHA-1, SHA-256
59
57
  service_domain: payu.com
60
58
  protocol: https
61
- data_format: json # json, xml
62
59
  env: secure
63
60
  order_url: http://localhost/order
64
61
  notify_url: http://localhost/notify
@@ -67,10 +64,11 @@ Or install it yourself as:
67
64
  ##Usage
68
65
 
69
66
  ###Creating Transparent order
67
+ For more information about order please refer to: http://developers.payu.com/pl/restapi.html#payusdk_creating_new_order_api .
70
68
  To create an order you must provide a Hash with order:
71
69
 
72
70
  order = {
73
- merchant_pos_id: "8389534",
71
+ merchant_pos_id: "145227",
74
72
  customer_ip: "127.0.0.1", # You can user request.remote_ip in your controller
75
73
  ext_order_id: 1342, #Order id in your system
76
74
  order_url: "http://localhost/",
@@ -79,14 +77,18 @@ Or install it yourself as:
79
77
  total_amount: 10000,
80
78
  notify_url: "http://localhost/",
81
79
  continue_url: "http://localhost/",
82
- validity_time: '48000',
83
80
  buyer: {
84
81
  email: 'dd@ddd.pl',
85
82
  phone: '123123123',
86
83
  first_name: 'Jan',
87
84
  last_name: 'Kowalski',
88
85
  language: 'pl_PL',
89
- NIN: "123456"
86
+ delivery: {
87
+ street: 'street',
88
+ postal_code: 'postal_code',
89
+ city: 'city',
90
+ country_code: 'PL'
91
+ }
90
92
  },
91
93
  products: [
92
94
  {
@@ -95,12 +97,11 @@ Or install it yourself as:
95
97
  quantity: 1
96
98
  }
97
99
  ],
98
- pay_methods: [
99
- {
100
- type: 'CARD_TOKEN',
101
- value: 'Token value'
102
- }
103
- ]
100
+ shipping_method: {
101
+ country: 'PL',
102
+ price: 'price',
103
+ name: 'shipping name'
104
+ }
104
105
  }
105
106
 
106
107
  When you have ready order Hash you can create new order:
@@ -181,7 +182,11 @@ end
181
182
  })
182
183
 
183
184
 
184
-
185
+ ##Changelog
186
+ 0.1.2
187
+
188
+ * Gem adjusted to OpenPayU REST API v 2.0
189
+ * Communication with OpenPayU only in JSON format, XML is no longer supported
185
190
 
186
191
 
187
192
  ## Contributing
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: EmptyResponseError
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!EmptyResponseError.html";
21
21
  </script>
22
22
 
23
23
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Dec 17 15:20:59 2013 by
117
+ Generated on Thu May 29 15:13:58 2014 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.8.7.2 (ruby-1.9.3).
119
+ 0.8.7.4 (ruby-1.9.3).
120
120
  </div>
121
121
 
122
122
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: HttpStatusException
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!HttpStatusException.html";
21
21
  </script>
22
22
 
23
23
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Dec 17 15:20:59 2013 by
117
+ Generated on Thu May 29 15:13:58 2014 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.8.7.2 (ruby-1.9.3).
119
+ 0.8.7.4 (ruby-1.9.3).
120
120
  </div>
121
121
 
122
122
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: NotImplementedException
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!NotImplementedException.html";
21
21
  </script>
22
22
 
23
23
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Dec 17 15:20:59 2013 by
117
+ Generated on Thu May 29 15:13:58 2014 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.8.7.2 (ruby-1.9.3).
119
+ 0.8.7.4 (ruby-1.9.3).
120
120
  </div>
121
121
 
122
122
  </body>
data/doc/OpenPayU.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: OpenPayU
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!OpenPayU.html";
21
21
  </script>
22
22
 
23
23
 
@@ -80,7 +80,7 @@
80
80
 
81
81
  <dt class="r1 last">Defined in:</dt>
82
82
  <dd class="r1 last">lib/openpayu.rb<span class="defines">,<br />
83
- lib/openpayu/order.rb,<br /> lib/openpayu/token.rb,<br /> lib/openpayu/refund.rb,<br /> lib/openpayu/version.rb,<br /> lib/openpayu/document.rb,<br /> lib/openpayu/connection.rb,<br /> lib/openpayu/models/fee.rb,<br /> lib/openpayu/models/card.rb,<br /> lib/openpayu/xml_builder.rb,<br /> lib/openpayu/models/buyer.rb,<br /> lib/openpayu/models/model.rb,<br /> lib/openpayu/models/token.rb,<br /> lib/openpayu/models/order.rb,<br /> lib/openpayu/configuration.rb,<br /> lib/openpayu/models/refund.rb,<br /> lib/openpayu/models/address.rb,<br /> lib/openpayu/models/product.rb,<br /> lib/openpayu/models/pay_method.rb,<br /> lib/openpayu/documents/request.rb,<br /> lib/openpayu/documents/response.rb,<br /> lib/openpayu/models/status_update.rb,<br /> lib/openpayu/models/buyer/invoice.rb,<br /> lib/openpayu/models/buyer/delivery.rb,<br /> lib/openpayu/models/notify_response.rb,<br /> lib/openpayu/models/shipping_method.rb</span>
83
+ lib/openpayu/order.rb,<br /> lib/openpayu/token.rb,<br /> lib/openpayu/refund.rb,<br /> lib/openpayu/version.rb,<br /> lib/openpayu/document.rb,<br /> lib/openpayu/connection.rb,<br /> lib/openpayu/models/fee.rb,<br /> lib/openpayu/models/card.rb,<br /> lib/openpayu/models/buyer.rb,<br /> lib/openpayu/models/model.rb,<br /> lib/openpayu/models/order.rb,<br /> lib/openpayu/models/token.rb,<br /> lib/openpayu/configuration.rb,<br /> lib/openpayu/models/refund.rb,<br /> lib/openpayu/models/address.rb,<br /> lib/openpayu/models/product.rb,<br /> lib/openpayu/documents/request.rb,<br /> lib/openpayu/models/pay_method.rb,<br /> lib/openpayu/documents/response.rb,<br /> lib/openpayu/models/status_update.rb,<br /> lib/openpayu/models/buyer/invoice.rb,<br /> lib/openpayu/models/buyer/delivery.rb,<br /> lib/openpayu/models/notify_response.rb,<br /> lib/openpayu/models/shipping_method.rb</span>
84
84
  </dd>
85
85
 
86
86
  </dl>
@@ -94,7 +94,7 @@
94
94
 
95
95
 
96
96
 
97
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="OpenPayU/Configuration.html" title="OpenPayU::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="OpenPayU/Connection.html" title="OpenPayU::Connection (class)">Connection</a></span>, <span class='object_link'><a href="OpenPayU/Document.html" title="OpenPayU::Document (class)">Document</a></span>, <span class='object_link'><a href="OpenPayU/Order.html" title="OpenPayU::Order (class)">Order</a></span>, <span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span>, <span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span>, <span class='object_link'><a href="OpenPayU/XmlBuilder.html" title="OpenPayU::XmlBuilder (class)">XmlBuilder</a></span>
97
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="OpenPayU/Configuration.html" title="OpenPayU::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="OpenPayU/Connection.html" title="OpenPayU::Connection (class)">Connection</a></span>, <span class='object_link'><a href="OpenPayU/Document.html" title="OpenPayU::Document (class)">Document</a></span>, <span class='object_link'><a href="OpenPayU/Order.html" title="OpenPayU::Order (class)">Order</a></span>, <span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span>, <span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span>
98
98
 
99
99
 
100
100
  </p>
@@ -106,7 +106,7 @@
106
106
  <dt id="VERSION-constant" class="">VERSION =
107
107
 
108
108
  </dt>
109
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>'</span></span></pre></dd>
109
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.1.2</span><span class='tstring_end'>'</span></span></pre></dd>
110
110
 
111
111
  </dl>
112
112
 
@@ -246,6 +246,7 @@
246
246
  <pre class="lines">
247
247
 
248
248
 
249
+ 52
249
250
  53
250
251
  54
251
252
  55
@@ -257,11 +258,10 @@
257
258
  61
258
259
  62
259
260
  63
260
- 64
261
- 65</pre>
261
+ 64</pre>
262
262
  </td>
263
263
  <td>
264
- <pre class="code"><span class="info file"># File 'lib/openpayu.rb', line 53</span>
264
+ <pre class="code"><span class="info file"># File 'lib/openpayu.rb', line 52</span>
265
265
 
266
266
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hosted_order_form'>hosted_order_form</span><span class='lparen'>(</span><span class='id identifier rubyid_order'>order</span><span class='rparen'>)</span>
267
267
  <span class='ivar'>@order</span> <span class='op'>=</span> <span class='const'>Models</span><span class='op'>::</span><span class='const'>Order</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_order'>order</span><span class='rparen'>)</span>
@@ -395,6 +395,7 @@
395
395
  <pre class="lines">
396
396
 
397
397
 
398
+ 38
398
399
  39
399
400
  40
400
401
  41
@@ -402,11 +403,10 @@
402
403
  43
403
404
  44
404
405
  45
405
- 46
406
- 47</pre>
406
+ 46</pre>
407
407
  </td>
408
408
  <td>
409
- <pre class="code"><span class="info file"># File 'lib/openpayu.rb', line 39</span>
409
+ <pre class="code"><span class="info file"># File 'lib/openpayu.rb', line 38</span>
410
410
 
411
411
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_sign_form'>sign_form</span><span class='lparen'>(</span><span class='id identifier rubyid_form_fields'>form_fields</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_algorithm'>algorithm</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_pos_id'>pos_id</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
412
412
  <span class='id identifier rubyid_sorted_values'>sorted_values</span> <span class='op'>=</span> <span class='id identifier rubyid_form_fields'>form_fields</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_array'>array</span><span class='op'>|</span> <span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
@@ -427,9 +427,9 @@
427
427
  </div>
428
428
 
429
429
  <div id="footer">
430
- Generated on Tue Dec 17 15:20:58 2013 by
430
+ Generated on Thu May 29 15:13:57 2014 by
431
431
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
432
- 0.8.7.2 (ruby-1.9.3).
432
+ 0.8.7.4 (ruby-1.9.3).
433
433
  </div>
434
434
 
435
435
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Configuration
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../frames.html#!OpenPayU/Configuration.html";
21
21
  </script>
22
22
 
23
23
 
@@ -1321,12 +1321,12 @@
1321
1321
  <pre class="lines">
1322
1322
 
1323
1323
 
1324
- 52
1325
1324
  53
1326
- 54</pre>
1325
+ 54
1326
+ 55</pre>
1327
1327
  </td>
1328
1328
  <td>
1329
- <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 52</span>
1329
+ <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 53</span>
1330
1330
 
1331
1331
  <span class='kw'>def</span> <span class='id identifier rubyid_get_base_url'>get_base_url</span>
1332
1332
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@protocol</span><span class='rbrace'>}</span><span class='tstring_content'>://</span><span class='embexpr_beg'>#{</span><span class='ivar'>@env</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='ivar'>@service_domain</span><span class='rbrace'>}</span><span class='tstring_content'>/api/v2/</span><span class='tstring_end'>&quot;</span></span>
@@ -1351,12 +1351,12 @@
1351
1351
  <pre class="lines">
1352
1352
 
1353
1353
 
1354
- 39
1355
1354
  40
1356
- 41</pre>
1355
+ 41
1356
+ 42</pre>
1357
1357
  </td>
1358
1358
  <td>
1359
- <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 39</span>
1359
+ <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 40</span>
1360
1360
 
1361
1361
  <span class='kw'>def</span> <span class='id identifier rubyid_required_parameters'>required_parameters</span>
1362
1362
  <span class='lbracket'>[</span><span class='symbol'>:merchant_pos_id</span><span class='comma'>,</span> <span class='symbol'>:signature_key</span><span class='rbracket'>]</span>
@@ -1386,7 +1386,8 @@
1386
1386
  34
1387
1387
  35
1388
1388
  36
1389
- 37</pre>
1389
+ 37
1390
+ 38</pre>
1390
1391
  </td>
1391
1392
  <td>
1392
1393
  <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 32</span>
@@ -1396,6 +1397,7 @@
1396
1397
  <span class='ivar'>@env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sandbox</span><span class='tstring_end'>'</span></span>
1397
1398
  <span class='ivar'>@country</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pl</span><span class='tstring_end'>'</span></span>
1398
1399
  <span class='ivar'>@algorithm</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>MD5</span><span class='tstring_end'>'</span></span>
1400
+ <span class='ivar'>@data_format</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>json</span><span class='tstring_end'>'</span></span>
1399
1401
  <span class='kw'>end</span></pre>
1400
1402
  </td>
1401
1403
  </tr>
@@ -1439,12 +1441,12 @@
1439
1441
  <pre class="lines">
1440
1442
 
1441
1443
 
1442
- 56
1443
1444
  57
1444
- 58</pre>
1445
+ 58
1446
+ 59</pre>
1445
1447
  </td>
1446
1448
  <td>
1447
- <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 56</span>
1449
+ <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 57</span>
1448
1450
 
1449
1451
  <span class='kw'>def</span> <span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
1450
1452
  <span class='ivar'>@protocol</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https</span><span class='tstring_end'>'</span></span>
@@ -1491,17 +1493,17 @@
1491
1493
  <pre class="lines">
1492
1494
 
1493
1495
 
1494
- 43
1495
1496
  44
1496
1497
  45
1497
1498
  46
1498
1499
  47
1499
1500
  48
1500
1501
  49
1501
- 50</pre>
1502
+ 50
1503
+ 51</pre>
1502
1504
  </td>
1503
1505
  <td>
1504
- <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 43</span>
1506
+ <pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 44</span>
1505
1507
 
1506
1508
  <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span>
1507
1509
  <span class='id identifier rubyid_required_parameters'>required_parameters</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_parameter'>parameter</span><span class='op'>|</span>
@@ -1521,9 +1523,9 @@
1521
1523
  </div>
1522
1524
 
1523
1525
  <div id="footer">
1524
- Generated on Tue Dec 17 15:21:00 2013 by
1526
+ Generated on Thu May 29 15:13:59 2014 by
1525
1527
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1526
- 0.8.7.2 (ruby-1.9.3).
1528
+ 0.8.7.4 (ruby-1.9.3).
1527
1529
  </div>
1528
1530
 
1529
1531
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Connection
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../frames.html#!OpenPayU/Connection.html";
21
21
  </script>
22
22
 
23
23
 
@@ -117,7 +117,7 @@
117
117
  <li class="public ">
118
118
  <span class="summary_signature">
119
119
 
120
- <a href="#delete-class_method" title="delete (class method)">+ (Object) <strong>delete</strong>(url, data, headers) </a>
120
+ <a href="#delete-class_method" title="delete (class method)">+ (Object) <strong>delete</strong>(endpoint, data) </a>
121
121
 
122
122
 
123
123
 
@@ -139,7 +139,7 @@
139
139
  <li class="public ">
140
140
  <span class="summary_signature">
141
141
 
142
- <a href="#get-class_method" title="get (class method)">+ (Object) <strong>get</strong>(url, data, headers) </a>
142
+ <a href="#get-class_method" title="get (class method)">+ (Object) <strong>get</strong>(endpoint, data) </a>
143
143
 
144
144
 
145
145
 
@@ -161,7 +161,7 @@
161
161
  <li class="public ">
162
162
  <span class="summary_signature">
163
163
 
164
- <a href="#post-class_method" title="post (class method)">+ (Object) <strong>post</strong>(url, data, headers) </a>
164
+ <a href="#post-class_method" title="post (class method)">+ (Object) <strong>post</strong>(endpoint, data) </a>
165
165
 
166
166
 
167
167
 
@@ -183,7 +183,7 @@
183
183
  <li class="public ">
184
184
  <span class="summary_signature">
185
185
 
186
- <a href="#put-class_method" title="put (class method)">+ (Object) <strong>put</strong>(url, data, headers) </a>
186
+ <a href="#put-class_method" title="put (class method)">+ (Object) <strong>put</strong>(endpoint, data) </a>
187
187
 
188
188
 
189
189
 
@@ -214,7 +214,7 @@
214
214
  <div class="method_details first">
215
215
  <h3 class="signature first" id="delete-class_method">
216
216
 
217
- + (<tt>Object</tt>) <strong>delete</strong>(url, data, headers)
217
+ + (<tt>Object</tt>) <strong>delete</strong>(endpoint, data)
218
218
 
219
219
 
220
220
 
@@ -226,15 +226,15 @@
226
226
  <pre class="lines">
227
227
 
228
228
 
229
- 40
230
- 41
231
- 42</pre>
229
+ 36
230
+ 37
231
+ 38</pre>
232
232
  </td>
233
233
  <td>
234
- <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 40</span>
234
+ <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 36</span>
235
235
 
236
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
237
- <span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DELETE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
236
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
237
+ <span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DELETE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
238
238
  <span class='kw'>end</span></pre>
239
239
  </td>
240
240
  </tr>
@@ -244,7 +244,7 @@
244
244
  <div class="method_details ">
245
245
  <h3 class="signature " id="get-class_method">
246
246
 
247
- + (<tt>Object</tt>) <strong>get</strong>(url, data, headers)
247
+ + (<tt>Object</tt>) <strong>get</strong>(endpoint, data)
248
248
 
249
249
 
250
250
 
@@ -256,15 +256,15 @@
256
256
  <pre class="lines">
257
257
 
258
258
 
259
- 36
260
- 37
261
- 38</pre>
259
+ 32
260
+ 33
261
+ 34</pre>
262
262
  </td>
263
263
  <td>
264
- <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 36</span>
264
+ <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 32</span>
265
265
 
266
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
267
- <span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GET</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
266
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
267
+ <span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GET</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
268
268
  <span class='kw'>end</span></pre>
269
269
  </td>
270
270
  </tr>
@@ -274,7 +274,7 @@
274
274
  <div class="method_details ">
275
275
  <h3 class="signature " id="post-class_method">
276
276
 
277
- + (<tt>Object</tt>) <strong>post</strong>(url, data, headers)
277
+ + (<tt>Object</tt>) <strong>post</strong>(endpoint, data)
278
278
 
279
279
 
280
280
 
@@ -295,22 +295,18 @@
295
295
  16
296
296
  17
297
297
  18
298
- 19
299
- 20
300
- 21</pre>
298
+ 19</pre>
301
299
  </td>
302
300
  <td>
303
301
  <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 10</span>
304
302
 
305
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
306
- <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
307
- <span class='id identifier rubyid_http'>http</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
308
- <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
303
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
304
+ <span class='id identifier rubyid_http'>http</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_build_url'>build_url</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='rparen'>)</span>
309
305
  <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Post</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
306
+ <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
310
307
  <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
311
308
  <span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span>
312
309
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>application/</span><span class='embexpr_beg'>#{</span><span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
313
- <span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
314
310
  <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
315
311
  <span class='lbrace'>{</span> <span class='label'>response:</span> <span class='id identifier rubyid_response'>response</span><span class='comma'>,</span> <span class='label'>request:</span> <span class='id identifier rubyid_request'>request</span> <span class='rbrace'>}</span>
316
312
  <span class='kw'>end</span></pre>
@@ -322,7 +318,7 @@
322
318
  <div class="method_details ">
323
319
  <h3 class="signature " id="put-class_method">
324
320
 
325
- + (<tt>Object</tt>) <strong>put</strong>(url, data, headers)
321
+ + (<tt>Object</tt>) <strong>put</strong>(endpoint, data)
326
322
 
327
323
 
328
324
 
@@ -334,6 +330,8 @@
334
330
  <pre class="lines">
335
331
 
336
332
 
333
+ 21
334
+ 22
337
335
  23
338
336
  24
339
337
  25
@@ -341,24 +339,18 @@
341
339
  27
342
340
  28
343
341
  29
344
- 30
345
- 31
346
- 32
347
- 33
348
- 34</pre>
342
+ 30</pre>
349
343
  </td>
350
344
  <td>
351
- <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 23</span>
345
+ <pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 21</span>
352
346
 
353
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
354
- <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
355
- <span class='id identifier rubyid_http'>http</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
356
- <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
347
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
348
+ <span class='id identifier rubyid_http'>http</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_build_url'>build_url</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='rparen'>)</span>
357
349
  <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Put</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
350
+ <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
358
351
  <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
359
352
  <span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span>
360
353
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>application/</span><span class='embexpr_beg'>#{</span><span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
361
- <span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
362
354
  <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
363
355
  <span class='lbrace'>{</span> <span class='label'>response:</span> <span class='id identifier rubyid_response'>response</span><span class='comma'>,</span> <span class='label'>request:</span> <span class='id identifier rubyid_request'>request</span> <span class='rbrace'>}</span>
364
356
  <span class='kw'>end</span></pre>
@@ -372,9 +364,9 @@
372
364
  </div>
373
365
 
374
366
  <div id="footer">
375
- Generated on Tue Dec 17 15:20:59 2013 by
367
+ Generated on Thu May 29 15:13:58 2014 by
376
368
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
377
- 0.8.7.2 (ruby-1.9.3).
369
+ 0.8.7.4 (ruby-1.9.3).
378
370
  </div>
379
371
 
380
372
  </body>