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 +4 -4
- data/README.md +26 -21
- data/lib/currency_conversion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 742fb1242ed3b5d18241f1b5252e3ab9128fbae2
|
4
|
+
data.tar.gz: e697972261c45e4d07ff35f272d507664eb24966
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
```
|
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
|
-
|
111
|
-
"
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
"
|
117
|
-
|
118
|
-
|
119
|
-
|
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
|
|