simple_forex 0.1.2 → 0.1.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +48 -27
- data/lib/doc/CreateCurrencies.html +137 -0
- data/lib/doc/Object.html +114 -0
- data/lib/doc/SimpleForex/Currency.html +99 -0
- data/lib/doc/SimpleForex/Error.html +97 -0
- data/lib/doc/SimpleForex/Railtie.html +97 -0
- data/lib/doc/SimpleForex.html +254 -0
- data/lib/doc/SimpleForexGenerator.html +137 -0
- data/lib/doc/created.rid +8 -0
- data/lib/doc/css/fonts.css +167 -0
- data/lib/doc/css/rdoc.css +639 -0
- data/lib/doc/fonts/Lato-Light.ttf +0 -0
- data/lib/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/lib/doc/fonts/Lato-Regular.ttf +0 -0
- data/lib/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/lib/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/lib/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/lib/doc/images/add.png +0 -0
- data/lib/doc/images/arrow_up.png +0 -0
- data/lib/doc/images/brick.png +0 -0
- data/lib/doc/images/brick_link.png +0 -0
- data/lib/doc/images/bug.png +0 -0
- data/lib/doc/images/bullet_black.png +0 -0
- data/lib/doc/images/bullet_toggle_minus.png +0 -0
- data/lib/doc/images/bullet_toggle_plus.png +0 -0
- data/lib/doc/images/date.png +0 -0
- data/lib/doc/images/delete.png +0 -0
- data/lib/doc/images/find.png +0 -0
- data/lib/doc/images/loadingAnimation.gif +0 -0
- data/lib/doc/images/macFFBgHack.png +0 -0
- data/lib/doc/images/package.png +0 -0
- data/lib/doc/images/page_green.png +0 -0
- data/lib/doc/images/page_white_text.png +0 -0
- data/lib/doc/images/page_white_width.png +0 -0
- data/lib/doc/images/plugin.png +0 -0
- data/lib/doc/images/ruby.png +0 -0
- data/lib/doc/images/tag_blue.png +0 -0
- data/lib/doc/images/tag_green.png +0 -0
- data/lib/doc/images/transparent.png +0 -0
- data/lib/doc/images/wrench.png +0 -0
- data/lib/doc/images/wrench_orange.png +0 -0
- data/lib/doc/images/zoom.png +0 -0
- data/lib/doc/index.html +94 -0
- data/lib/doc/js/darkfish.js +84 -0
- data/lib/doc/js/navigation.js +105 -0
- data/lib/doc/js/navigation.js.gz +0 -0
- data/lib/doc/js/search.js +110 -0
- data/lib/doc/js/search_index.js +1 -0
- data/lib/doc/js/search_index.js.gz +0 -0
- data/lib/doc/js/searcher.js +229 -0
- data/lib/doc/js/searcher.js.gz +0 -0
- data/lib/doc/simple_forex/tasks/simple_forex_rake.html +153 -0
- data/lib/doc/table_of_contents.html +101 -0
- data/lib/simple_forex/tasks/simple_forex.rake +3 -3
- data/lib/simple_forex/version.rb +1 -1
- data/lib/simple_forex.rb +92 -2
- metadata +69 -5
- data/lib/easy_money.rb +0 -109
- data/lib/simple_forex/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 219ceb3f562efe60fe2ef6acfe7ccc508dfb873d2d6e77b69628406e32add8d2
|
4
|
+
data.tar.gz: 1d6657f7b100388d7b30595be3691e78185c19cb6889f5f5f7bf9a9683fd0836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0c71fc05cd97fff4860a5b59324e6436e06204435f4612e545d6875731995c8db4737b6a1fd86ba41c65a60fd91bd9b25402ab5f212815f33aabd598a74db6e
|
7
|
+
data.tar.gz: 5b6219904cd741b08cbf7fdad58886bfc30d85ebaa7bb7ce38e305bc73b26a213485a95e7ff4cc94baa71293153b458e64edfa17317dfe3225b193f4ca7de469
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,64 +1,87 @@
|
|
1
1
|
# SimpleForex
|
2
2
|
|
3
|
-
|
3
|
+
This ruby gem lets you fetch exchange rates for ~170 currencies (a total of ~14,000 imputed currency pairs) for free, on an hourly frequently (sufficient for most, but not all, use cases), and takes only about 5 minutes to set up.
|
4
|
+
|
5
|
+
The usage instructions below show how to create a currencies table, run a rake task to update the exchange rates, and use `convert()` to convert between currencies inside your application. Total time to implementation should be ~5 minutes.
|
4
6
|
|
5
|
-
- Add a currencies table to your rails app
|
6
|
-
- Schedule the retrieval of up to date foreign exchange data (hourly from a free API)
|
7
|
-
- Convert between currencies
|
8
7
|
|
9
8
|
## Installation
|
10
9
|
|
11
|
-
Install the gem
|
10
|
+
Install the gem in one of the usual ways:
|
12
11
|
|
13
12
|
```bash
|
14
13
|
bundle add simple_forex
|
15
|
-
```
|
16
|
-
|
17
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
14
|
|
19
|
-
```bash
|
20
15
|
gem install simple_forex
|
21
16
|
```
|
22
17
|
|
23
18
|
## Usage
|
24
19
|
|
20
|
+
### Create a currencies table
|
25
21
|
|
26
|
-
|
27
|
-
### Add a currencies table to your rails app
|
28
|
-
|
29
|
-
After installing the gem, run this to add a currencies table to your rails app
|
22
|
+
Use the included generator will make a currencies table migration:
|
30
23
|
|
31
24
|
```bash
|
32
25
|
rails generate simple_forex
|
33
26
|
```
|
34
27
|
|
35
|
-
|
28
|
+
Then run the migration:
|
36
29
|
|
37
30
|
```
|
38
31
|
rake db:migrate
|
39
32
|
```
|
40
33
|
|
41
|
-
###
|
34
|
+
### Fetch exchange rates
|
42
35
|
|
43
|
-
|
44
|
-
Get a [free API key](https://openexchangerates.org/signup/free), open credentials.yml (`EDITOR="vim" rails credentials:edit`) and add the API key to credentials.yml like so:
|
36
|
+
Create a [free API key](https://openexchangerates.org/signup/free), open credentials.yml (`EDITOR="vim" rails credentials:edit`) and add the API key to credentials.yml like so:
|
45
37
|
|
46
38
|
```
|
47
39
|
# config/credentials.yml.enc
|
40
|
+
|
48
41
|
simple_forex:
|
49
42
|
openexchangerates_key: 1234abcd
|
50
43
|
```
|
51
44
|
|
52
|
-
|
45
|
+
Run this rate task to retrieve currencies and store them in the currencies table:
|
53
46
|
|
54
47
|
```bash
|
55
48
|
rake simple_forex:fetch_rates
|
56
49
|
```
|
57
50
|
|
58
|
-
View the exchange rate data in the rails console with `Currency.last
|
51
|
+
View the exchange rate data in the rails console with `Currency.last`:
|
59
52
|
|
53
|
+
```
|
54
|
+
=> #<SimpleForex::Currency:0x000000013c4bae78
|
55
|
+
id: 1,
|
56
|
+
blob:
|
57
|
+
{"base"=>"USD",
|
58
|
+
"rates"=>
|
59
|
+
{"AED"=>"3.67286",
|
60
|
+
"AFN"=>"89.49999",
|
61
|
+
"ALL"=>"108.164235",
|
62
|
+
"AMD"=>"388.147964",
|
63
|
+
"ANG"=>"1.798456",
|
64
|
+
"AOA"=>"503.891",
|
65
|
+
"ARS"=>"198.1831",
|
66
|
+
"AUD"=>"1.485125",
|
67
|
+
|
68
|
+
...
|
69
|
+
|
70
|
+
"XOF"=>"617.115134",
|
71
|
+
"XPD"=>"0.00069861",
|
72
|
+
"XPF"=>"112.265627",
|
73
|
+
"XPT"=>"0.00103175",
|
74
|
+
"YER"=>"250.300106",
|
75
|
+
"ZAR"=>"18.23512",
|
76
|
+
"ZMW"=>"19.934751",
|
77
|
+
"ZWL"=>"322.0"},
|
78
|
+
"license"=>"https://openexchangerates.org/license",
|
79
|
+
"timestamp"=>1678096800,
|
80
|
+
"disclaimer"=>"Usage subject to terms: https://openexchangerates.org/terms"},
|
81
|
+
created_at: Mon, 06 Mar 2023 10:43:54 UTC +00:00,
|
82
|
+
updated_at: Mon, 06 Mar 2023 10:43:54 UTC +00:00>
|
83
|
+
```
|
60
84
|
|
61
|
-
### Schedule task to update currencies
|
62
85
|
|
63
86
|
**Optional**
|
64
87
|
|
@@ -76,7 +99,7 @@ require 'simple_forex'
|
|
76
99
|
convert(amount, from_currency, to_currency)
|
77
100
|
```
|
78
101
|
|
79
|
-
|
102
|
+
Example
|
80
103
|
|
81
104
|
```ruby
|
82
105
|
require 'simple_forex'
|
@@ -84,18 +107,16 @@ convert(100, 'USD', 'EUR')
|
|
84
107
|
# => 0.939717e2
|
85
108
|
```
|
86
109
|
|
87
|
-
Note
|
88
|
-
|
110
|
+
Note ruby decimals use scientific notation, evidenced by the `e` toward the end of the value.
|
89
111
|
|
90
|
-
## Development
|
91
112
|
|
92
|
-
|
113
|
+
## Requirements
|
93
114
|
|
94
|
-
|
115
|
+
This gem *probably* only works on Rails 6 and Rails 7 apps, and only those using a postgres database.
|
95
116
|
|
96
117
|
## Contributing
|
97
118
|
|
98
|
-
Bug reports and pull requests are welcome
|
119
|
+
Bug reports and pull requests are very welcome at https://github.com/stevecondylios/simple_forex.
|
99
120
|
|
100
121
|
## License
|
101
122
|
|
@@ -0,0 +1,137 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class CreateCurrencies - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">MIGRATION_CLASS
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li ><a href="#method-i-change">#change</a>
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
</nav>
|
81
|
+
|
82
|
+
<main role="main" aria-labelledby="class-CreateCurrencies">
|
83
|
+
<h1 id="class-CreateCurrencies" class="class">
|
84
|
+
class CreateCurrencies
|
85
|
+
</h1>
|
86
|
+
|
87
|
+
<section class="description">
|
88
|
+
|
89
|
+
</section>
|
90
|
+
|
91
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
98
|
+
<header>
|
99
|
+
<h3>Public Instance Methods</h3>
|
100
|
+
</header>
|
101
|
+
|
102
|
+
<div id="method-i-change" class="method-detail ">
|
103
|
+
<div class="method-heading">
|
104
|
+
<span class="method-name">change</span><span
|
105
|
+
class="method-args">()</span>
|
106
|
+
<span class="method-click-advice">click to toggle source</span>
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<div class="method-description">
|
110
|
+
|
111
|
+
|
112
|
+
<div class="method-source-code" id="change-source">
|
113
|
+
<pre><span class="ruby-comment"># File simple_forex/migration.rb, line 9</span>
|
114
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change</span>
|
115
|
+
<span class="ruby-identifier">create_table</span> <span class="ruby-value">:currencies</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
|
116
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">jsonb</span> <span class="ruby-value">:blob</span>
|
117
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
|
118
|
+
<span class="ruby-keyword">end</span>
|
119
|
+
<span class="ruby-keyword">end</span></pre>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
</div>
|
125
|
+
|
126
|
+
</section>
|
127
|
+
|
128
|
+
</section>
|
129
|
+
</main>
|
130
|
+
|
131
|
+
|
132
|
+
<footer id="validator-badges" role="contentinfo">
|
133
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
134
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
135
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
136
|
+
</footer>
|
137
|
+
|
data/lib/doc/Object.html
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Object - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">BasicObject
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
<div id="includes-section" class="nav-section">
|
69
|
+
<h3>Included Modules</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
<li><a class="include" href="SimpleForex.html">SimpleForex</a>
|
73
|
+
</ul>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
</div>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
<main role="main" aria-labelledby="class-Object">
|
82
|
+
<h1 id="class-Object" class="class">
|
83
|
+
class Object
|
84
|
+
</h1>
|
85
|
+
|
86
|
+
<section class="description">
|
87
|
+
|
88
|
+
</section>
|
89
|
+
|
90
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
91
|
+
|
92
|
+
|
93
|
+
<section class="constants-list">
|
94
|
+
<header>
|
95
|
+
<h3>Constants</h3>
|
96
|
+
</header>
|
97
|
+
<dl>
|
98
|
+
<dt id="MIGRATION_CLASS">MIGRATION_CLASS
|
99
|
+
<dd>
|
100
|
+
</dl>
|
101
|
+
</section>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</section>
|
106
|
+
</main>
|
107
|
+
|
108
|
+
|
109
|
+
<footer id="validator-badges" role="contentinfo">
|
110
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
111
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
112
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
113
|
+
</footer>
|
114
|
+
|
@@ -0,0 +1,99 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class SimpleForex::Currency - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">ActiveRecord::Base
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</div>
|
71
|
+
</nav>
|
72
|
+
|
73
|
+
<main role="main" aria-labelledby="class-SimpleForex::Currency">
|
74
|
+
<h1 id="class-SimpleForex::Currency" class="class">
|
75
|
+
class SimpleForex::Currency
|
76
|
+
</h1>
|
77
|
+
|
78
|
+
<section class="description">
|
79
|
+
|
80
|
+
<p>From: <a href="https://stackoverflow.com/a/31701809/5783745">stackoverflow.com/a/31701809/5783745</a> Otherwise after the migration you get Currency.count # uninitialized constant <a href="Currency.html"><code>Currency</code></a> (NameError)</p>
|
81
|
+
|
82
|
+
</section>
|
83
|
+
|
84
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
</section>
|
91
|
+
</main>
|
92
|
+
|
93
|
+
|
94
|
+
<footer id="validator-badges" role="contentinfo">
|
95
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
96
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
97
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
98
|
+
</footer>
|
99
|
+
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class SimpleForex::Error - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">StandardError
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</div>
|
71
|
+
</nav>
|
72
|
+
|
73
|
+
<main role="main" aria-labelledby="class-SimpleForex::Error">
|
74
|
+
<h1 id="class-SimpleForex::Error" class="class">
|
75
|
+
class SimpleForex::Error
|
76
|
+
</h1>
|
77
|
+
|
78
|
+
<section class="description">
|
79
|
+
|
80
|
+
</section>
|
81
|
+
|
82
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
</section>
|
89
|
+
</main>
|
90
|
+
|
91
|
+
|
92
|
+
<footer id="validator-badges" role="contentinfo">
|
93
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
94
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
95
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
96
|
+
</footer>
|
97
|
+
|