currencyconversion 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7da06db9b4adfa274c28d4e9a3111d32f8fff7e
4
- data.tar.gz: e037e6b63c7b7500bfcd9bd5ead2879fc44120b7
3
+ metadata.gz: 742fb1242ed3b5d18241f1b5252e3ab9128fbae2
4
+ data.tar.gz: e697972261c45e4d07ff35f272d507664eb24966
5
5
  SHA512:
6
- metadata.gz: 631387c053ed47dc9d698280908414102bd9cac64194ef380db9657978879a6b22a967db0742d5bfb41e125ed26653220e8f04a9a99868e14d7f12d4fd8483cc
7
- data.tar.gz: 7278ed992900ec32dcf760446f27b4ccf0401986aebc87b36ad887562131e83ef620c3a3f4f8080b6a93db54dd1818186385d57f40d5a8766442cb4c026651a8
6
+ metadata.gz: 0a9c708b8a4eeff4027a238dc2c071ae87ba9a58bcdee9b46e598a189561487a17da1851e03368467055ce701730656af30dbd0f773971b2c42fb5f18ca1fdf8
7
+ data.tar.gz: 72fe80764a6e5a8437e56e68f747991c07565e0a9c856bba2d4afcbdbf41941b8ea3f8d7844cf9078c8c4ccc19729f6f2a1df4ba53a9d3670c9703ebe27d6c3b
data/README.md CHANGED
@@ -82,16 +82,9 @@ Boolean value to indicate if the calls to the API should use a secure protocol o
82
82
  ## Live
83
83
  Takes a simple string and detects the language with a list of detections.
84
84
 
85
- ###### Define Query
86
-
87
- var liveQuery = {
88
- source: 'SGD',
89
- currencies: ['USD', 'THB']
90
- };
91
-
92
85
  ###### Simple Request
93
86
 
94
- ```ruby
87
+ ```
95
88
  # Set the currencies to fetch
96
89
  currencies = 'AUD,EUR,GBP,PLN'
97
90
 
@@ -101,24 +94,36 @@ options = CurrencyLayer::LiveOptions.new()
101
94
  # We make the call to fetch the live currencies
102
95
  response = @client.live(currencies, options)
103
96
 
97
+ ```
98
+
99
+ ## List
100
+ Fetches the list of currencies.
101
+
102
+ ###### Simple Request
103
+
104
+ ```
105
+ # We declare the options
106
+ options = CurrencyLayer::ListOptions.new()
107
+
108
+ # We make the call to fetch the list of currencies
109
+ response = @client.list(options)
110
+
104
111
  ```
105
112
 
106
113
  ###### Response
107
- ```
108
114
 
115
+ ```
109
116
  {
110
- "success": true,
111
- "terms": "https://currencylayer.com/terms",
112
- "privacy": "https://currencylayer.com/privacy",
113
- "timestamp": 1455968535,
114
- "source": "USD",
115
- "quotes": {
116
- "USDAUD": 1.39865,
117
- "USDEUR": 0.898271,
118
- "USDGBP": 0.694155,
119
- "USDPLN": 3.927404
120
- }
121
- }
117
+ [...]
118
+ "currencies": {
119
+ "AED": "United Arab Emirates Dirham",
120
+ "AFN": "Afghan Afghani",
121
+ "ALL": "Albanian Lek",
122
+ "AMD": "Armenian Dram",
123
+ "ANG": "Netherlands Antillean Guilder",
124
+ [...]
125
+ }
126
+ }
122
127
 
123
128
  ```
124
129
 
@@ -1,3 +1,3 @@
1
1
  module CurrencyLayer
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currencyconversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Andreas Moelgaard