localbitcoins 0.0.4 → 1.0.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 (57) hide show
  1. checksums.yaml +13 -5
  2. data/.gitignore +2 -0
  3. data/Gemfile.lock +16 -19
  4. data/README.md +319 -35
  5. data/Rakefile +1 -1
  6. data/lib/localbitcoins/client/ads.rb +45 -9
  7. data/lib/localbitcoins/client/contacts.rb +66 -0
  8. data/lib/localbitcoins/client/escrows.rb +8 -12
  9. data/lib/localbitcoins/client/markets.rb +27 -0
  10. data/lib/localbitcoins/client/public.rb +78 -0
  11. data/lib/localbitcoins/client/users.rb +16 -0
  12. data/lib/localbitcoins/client/wallet.rb +28 -0
  13. data/lib/localbitcoins/client.rb +13 -1
  14. data/lib/localbitcoins/request.rb +11 -15
  15. data/lib/localbitcoins/version.rb +1 -1
  16. data/localbitcoins.gemspec +3 -3
  17. data/spec/client_spec.rb +397 -8
  18. data/spec/fixtures/account_info.json +14 -0
  19. data/spec/fixtures/ad_create.json +5 -0
  20. data/spec/fixtures/ad_list.json +103 -0
  21. data/spec/fixtures/ad_single.json +55 -0
  22. data/spec/fixtures/ad_update.json +5 -0
  23. data/spec/fixtures/ads.json +103 -0
  24. data/spec/fixtures/contact_message.json +5 -0
  25. data/spec/fixtures/contacts.json +52 -0
  26. data/spec/fixtures/contacts_active.json +165 -0
  27. data/spec/fixtures/contacts_active_buyers.json +60 -0
  28. data/spec/fixtures/contacts_active_sellers.json +111 -0
  29. data/spec/fixtures/contacts_cancel.json +5 -0
  30. data/spec/fixtures/contacts_canceled_contacts.json +162 -0
  31. data/spec/fixtures/contacts_closed_contacts.json +109 -0
  32. data/spec/fixtures/contacts_contact_info.json +52 -0
  33. data/spec/fixtures/contacts_contacts_info.json +111 -0
  34. data/spec/fixtures/contacts_create.json +10 -0
  35. data/spec/fixtures/contacts_messages.json +43 -0
  36. data/spec/fixtures/contacts_released_contacts.json +60 -0
  37. data/spec/fixtures/currencies.json +505 -0
  38. data/spec/fixtures/currency_ticker.json +236 -0
  39. data/spec/fixtures/escrow_release.json +5 -0
  40. data/spec/fixtures/escrows.json +24 -22
  41. data/spec/fixtures/local_buy_ads.json +93 -0
  42. data/spec/fixtures/local_sell_ads.json +93 -0
  43. data/spec/fixtures/logout.json +0 -0
  44. data/spec/fixtures/myself.json +14 -0
  45. data/spec/fixtures/online_buy_ads.json +637 -0
  46. data/spec/fixtures/online_sell_ads.json +2160 -0
  47. data/spec/fixtures/orderbook.json +1739 -0
  48. data/spec/fixtures/payment_methods.json +95 -0
  49. data/spec/fixtures/places.json +15 -0
  50. data/spec/fixtures/ticker.json +254 -0
  51. data/spec/fixtures/trades.json +3002 -0
  52. data/spec/fixtures/wallet.json +34 -0
  53. data/spec/fixtures/wallet_addr.json +6 -0
  54. data/spec/fixtures/wallet_balance.json +16 -0
  55. data/spec/fixtures/wallet_send.json +5 -0
  56. data/spec/spec_helper.rb +26 -29
  57. metadata +51 -7
@@ -0,0 +1,505 @@
1
+ {
2
+ "data":{
3
+ "currencies":{
4
+ "DZD":{
5
+
6
+ },
7
+ "NAD":{
8
+
9
+ },
10
+ "GHS":{
11
+
12
+ },
13
+ "EGP":{
14
+ "name":"Egyptian Pound"
15
+ },
16
+ "BGN":{
17
+
18
+ },
19
+ "PAB":{
20
+
21
+ },
22
+ "BOB":{
23
+
24
+ },
25
+ "DKK":{
26
+ "name":"Danish Krona"
27
+ },
28
+ "BWP":{
29
+
30
+ },
31
+ "LBP":{
32
+
33
+ },
34
+ "TZS":{
35
+
36
+ },
37
+ "VND":{
38
+ "name":"Vietnamese Dong"
39
+ },
40
+ "AOA":{
41
+
42
+ },
43
+ "KHR":{
44
+
45
+ },
46
+ "MYR":{
47
+ "name":"Malaysian Ringgit"
48
+ },
49
+ "KYD":{
50
+
51
+ },
52
+ "LYD":{
53
+
54
+ },
55
+ "UAH":{
56
+
57
+ },
58
+ "JOD":{
59
+
60
+ },
61
+ "AWG":{
62
+
63
+ },
64
+ "SAR":{
65
+ "name":"Saudi Riyal"
66
+ },
67
+ "EUR":{
68
+ "name":"Euro"
69
+ },
70
+ "HKD":{
71
+ "name":"Hong Kong Dollar"
72
+ },
73
+ "CHF":{
74
+ "name":"Swiss Franc"
75
+ },
76
+ "GIP":{
77
+
78
+ },
79
+ "XAR":{
80
+
81
+ },
82
+ "BYR":{
83
+ "name":"Belarusian Ruble"
84
+ },
85
+ "ALL":{
86
+
87
+ },
88
+ "MRO":{
89
+
90
+ },
91
+ "HRK":{
92
+ "name":"Croatian kuna"
93
+ },
94
+ "DJF":{
95
+
96
+ },
97
+ "SZL":{
98
+
99
+ },
100
+ "THB":{
101
+ "name":"Thai Baht"
102
+ },
103
+ "XAF":{
104
+
105
+ },
106
+ "BND":{
107
+
108
+ },
109
+ "ISK":{
110
+
111
+ },
112
+ "UYU":{
113
+
114
+ },
115
+ "NIO":{
116
+
117
+ },
118
+ "LAK":{
119
+
120
+ },
121
+ "SYP":{
122
+
123
+ },
124
+ "MAD":{
125
+
126
+ },
127
+ "MZN":{
128
+
129
+ },
130
+ "PHP":{
131
+ "name":"Philippines Peso"
132
+ },
133
+ "ZAR":{
134
+ "name":"South African Rand"
135
+ },
136
+ "NPR":{
137
+
138
+ },
139
+ "ZWL":{
140
+
141
+ },
142
+ "NGN":{
143
+
144
+ },
145
+ "CRC":{
146
+
147
+ },
148
+ "AED":{
149
+ "name":"United Arab Emirates Dirham"
150
+ },
151
+ "EEK":{
152
+
153
+ },
154
+ "MWK":{
155
+
156
+ },
157
+ "LKR":{
158
+
159
+ },
160
+ "PKR":{
161
+
162
+ },
163
+ "HUF":{
164
+ "name":"Hungarian Forint"
165
+ },
166
+ "BMD":{
167
+ "name":"BermudIan Dollar"
168
+ },
169
+ "LSL":{
170
+
171
+ },
172
+ "MNT":{
173
+
174
+ },
175
+ "AMD":{
176
+
177
+ },
178
+ "UGX":{
179
+
180
+ },
181
+ "QAR":{
182
+ "name":"Qatari Riyal"
183
+ },
184
+ "XDR":{
185
+
186
+ },
187
+ "JMD":{
188
+ "name":"Jamaican Dollar"
189
+ },
190
+ "GEL":{
191
+
192
+ },
193
+ "SHP":{
194
+
195
+ },
196
+ "AFN":{
197
+
198
+ },
199
+ "SBD":{
200
+
201
+ },
202
+ "KPW":{
203
+
204
+ },
205
+ "TRY":{
206
+ "name":"Turkish Lira"
207
+ },
208
+ "BDT":{
209
+
210
+ },
211
+ "YER":{
212
+
213
+ },
214
+ "HTG":{
215
+
216
+ },
217
+ "XOF":{
218
+
219
+ },
220
+ "MGA":{
221
+
222
+ },
223
+ "ANG":{
224
+
225
+ },
226
+ "LRD":{
227
+
228
+ },
229
+ "RWF":{
230
+
231
+ },
232
+ "NOK":{
233
+ "name":"Norwegian Krona"
234
+ },
235
+ "MOP":{
236
+
237
+ },
238
+ "INR":{
239
+ "name":"Indian Rupee"
240
+ },
241
+ "MXN":{
242
+ "name":"Mexican Peso"
243
+ },
244
+ "CZK":{
245
+ "name":"Czech Koruna"
246
+ },
247
+ "TJS":{
248
+
249
+ },
250
+ "BTN":{
251
+
252
+ },
253
+ "COP":{
254
+ "name":"Colombian Peso"
255
+ },
256
+ "TMT":{
257
+
258
+ },
259
+ "MUR":{
260
+
261
+ },
262
+ "IDR":{
263
+ "name":"Indonesian Rupiah"
264
+ },
265
+ "HNL":{
266
+
267
+ },
268
+ "XPF":{
269
+
270
+ },
271
+ "FJD":{
272
+
273
+ },
274
+ "ETB":{
275
+
276
+ },
277
+ "PEN":{
278
+ "name":"Peruvian New Sol"
279
+ },
280
+ "BZD":{
281
+
282
+ },
283
+ "ILS":{
284
+ "name":"Israeli Shekel"
285
+ },
286
+ "DOP":{
287
+
288
+ },
289
+ "TWD":{
290
+ "name":"Taiwan Dollar"
291
+ },
292
+ "MDL":{
293
+
294
+ },
295
+ "BSD":{
296
+
297
+ },
298
+ "SEK":{
299
+ "name":"Swedish Krona"
300
+ },
301
+ "ZMK":{
302
+
303
+ },
304
+ "JEP":{
305
+
306
+ },
307
+ "AUD":{
308
+ "name":"Australian Dollar"
309
+ },
310
+ "SRD":{
311
+
312
+ },
313
+ "CUP":{
314
+
315
+ },
316
+ "CLF":{
317
+
318
+ },
319
+ "BBD":{
320
+
321
+ },
322
+ "KMF":{
323
+
324
+ },
325
+ "KRW":{
326
+ "name":"South Korean won"
327
+ },
328
+ "GMD":{
329
+
330
+ },
331
+ "VEF":{
332
+
333
+ },
334
+ "GTQ":{
335
+
336
+ },
337
+ "CLP":{
338
+ "name":"Chilean Peso"
339
+ },
340
+ "ZMW":{
341
+
342
+ },
343
+ "LTL":{
344
+
345
+ },
346
+ "CDF":{
347
+
348
+ },
349
+ "XCD":{
350
+
351
+ },
352
+ "KZT":{
353
+ "name":"Tenge"
354
+ },
355
+ "RUB":{
356
+ "name":"Russian Ruble"
357
+ },
358
+ "XAG":{
359
+
360
+ },
361
+ "TTD":{
362
+ "name":"Trinidad and Tobago Dollar"
363
+ },
364
+ "OMR":{
365
+
366
+ },
367
+ "BRL":{
368
+ "name":"Brazilian Real"
369
+ },
370
+ "MMK":{
371
+ "name":"Burmese Kyat"
372
+ },
373
+ "PLN":{
374
+ "name":"Polish Zloty"
375
+ },
376
+ "PYG":{
377
+
378
+ },
379
+ "KES":{
380
+
381
+ },
382
+ "SVC":{
383
+
384
+ },
385
+ "MKD":{
386
+
387
+ },
388
+ "GBP":{
389
+ "name":"British Pound"
390
+ },
391
+ "AZN":{
392
+
393
+ },
394
+ "TOP":{
395
+
396
+ },
397
+ "MVR":{
398
+
399
+ },
400
+ "VUV":{
401
+
402
+ },
403
+ "GNF":{
404
+
405
+ },
406
+ "WST":{
407
+
408
+ },
409
+ "IQD":{
410
+
411
+ },
412
+ "ERN":{
413
+
414
+ },
415
+ "BAM":{
416
+
417
+ },
418
+ "SCR":{
419
+
420
+ },
421
+ "CAD":{
422
+ "name":"Canadian Dollar"
423
+ },
424
+ "CVE":{
425
+
426
+ },
427
+ "KWD":{
428
+
429
+ },
430
+ "BIF":{
431
+
432
+ },
433
+ "PGK":{
434
+
435
+ },
436
+ "SOS":{
437
+
438
+ },
439
+ "SGD":{
440
+ "name":"Singapore Dollar"
441
+ },
442
+ "UZS":{
443
+
444
+ },
445
+ "STD":{
446
+
447
+ },
448
+ "IRR":{
449
+
450
+ },
451
+ "CNY":{
452
+ "name":"Chinese Renminbi"
453
+ },
454
+ "SLL":{
455
+
456
+ },
457
+ "TND":{
458
+
459
+ },
460
+ "GYD":{
461
+
462
+ },
463
+ "MTL":{
464
+
465
+ },
466
+ "NZD":{
467
+ "name":"New-Zealand Dollar"
468
+ },
469
+ "FKP":{
470
+
471
+ },
472
+ "LVL":{
473
+
474
+ },
475
+ "USD":{
476
+ "name":"US Dollar"
477
+ },
478
+ "KGS":{
479
+
480
+ },
481
+ "ARS":{
482
+ "name":"Argentine Peso"
483
+ },
484
+ "RON":{
485
+ "name":"Romanian Leu"
486
+ },
487
+ "RSD":{
488
+
489
+ },
490
+ "BHD":{
491
+
492
+ },
493
+ "JPY":{
494
+ "name":"Japanese Yen"
495
+ },
496
+ "SDG":{
497
+
498
+ },
499
+ "XAU":{
500
+
501
+ }
502
+ },
503
+ "currency_count":166
504
+ }
505
+ }