akchabar 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/akchabar.rb +2 -1
- data/lib/akchabar/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: 8be8239d1df3fa22b92ce70b3acf12082bb47315
|
4
|
+
data.tar.gz: 0721629f4217811b7d5c56525c96b808f13df1bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9771c6315fcf97a56392f65a8f493e7388e9551e83ef7574970acf46b0f895fc0878c0f80203193031f46512607d43a27d4ab4eb286025be34e6140810aca70f
|
7
|
+
data.tar.gz: 1410ebce05e72adf7e9136d14b11304118b553cc6229dc1a1b74c96fdc3850b15b2bcdda871b44485827d2b3088106e162bcfec136ec2626005fab0dd450f4cd
|
data/lib/akchabar.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "akchabar/version"
|
2
2
|
require 'net/http'
|
3
3
|
require 'json'
|
4
|
+
require 'bigdecimal'
|
4
5
|
|
5
6
|
module Akchabar
|
6
7
|
|
@@ -9,6 +10,6 @@ module Akchabar
|
|
9
10
|
end
|
10
11
|
|
11
12
|
def self.btc_rate
|
12
|
-
self.rates["rates"]["btc"]
|
13
|
+
BigDecimal.new self.rates["rates"]["btc"]
|
13
14
|
end
|
14
15
|
end
|
data/lib/akchabar/version.rb
CHANGED