markit 0.0.1 → 0.0.2
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 +8 -8
- data/lib/markit.rb +4 -1
- data/lib/markit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmRhOTI0ODM2MmQyZDlmYjI5MDliNzM2N2ZjMDA5YTlmNjljY2ZjOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGZkMjczYWRlYjFjZTFiNmM1ODBiMTEzNmQzZTE4ZDVjOTUzZDg5Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWU3MjRkNjA3MGZjYWI1MmU5NzA1ZjEwNjlhMGNkMjMyYmQ3MTZlMThlNTFj
|
10
|
+
NWQyMjg5MWFhODI2NmExOWY3ZGU3N2Y5MGYxMTcwNjM4MDU5ZTdlMzdmYmJi
|
11
|
+
NmQwZTVhZDhjZjJhM2EwM2RkMWUwMDgyOTM1YzBjYzg1ZDRmNGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTEyZjgyNDYyOWYwY2VmMjRlOTExZjBkMDQxZDFkODdhM2NhNzhiNzY1NDBk
|
14
|
+
MGQyMmFiYzg5MTBhMjQ5ZjVhOTQ3YTYwMGRjNDZkN2FmZjBiOWE1ZWY0NWZj
|
15
|
+
YjUwNjlhNjk1M2UxZGM1ZGIyNjhiYWI4ZWE0ZDRmNzc5MmU1YmI=
|
data/lib/markit.rb
CHANGED
@@ -11,7 +11,6 @@ module MarkIt
|
|
11
11
|
:change_percent => "ChangePercent", #percent amount change in the price from open to last price today
|
12
12
|
:market_cap => "MarketCap", #market capitalization of the company
|
13
13
|
:volume => "Volume", #number of shares traded today
|
14
|
-
:change_ytd => "ChangeYTD", #dollar amount change in the price in the year to date
|
15
14
|
:change_percent_ytd => "ChangePercentYTD", #percent amount change in the price in the year to date
|
16
15
|
:high => "High", #highest price in the current trading session
|
17
16
|
:low => "Low", #lowest price in the current trading session
|
@@ -43,6 +42,10 @@ module MarkIt
|
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
45
|
+
|
46
|
+
def change_ytd
|
47
|
+
(info["QuoteApiModel"]["Data"]["ChangeYTD"].to_f - last_price.to_f).to_s
|
48
|
+
end
|
46
49
|
end
|
47
50
|
|
48
51
|
end
|
data/lib/markit/version.rb
CHANGED