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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTFkNTRlNzQ5YTEyMjU5YzlkNWY0YmJiOTJlMTlhMzQwNzljMTRjZg==
4
+ NmRhOTI0ODM2MmQyZDlmYjI5MDliNzM2N2ZjMDA5YTlmNjljY2ZjOA==
5
5
  data.tar.gz: !binary |-
6
- NTI4YmVkOTk0OTlkODMxZTA4MjU4NzFkZDk2MjlkYjcwOGRhZmE2Nw==
6
+ MGZkMjczYWRlYjFjZTFiNmM1ODBiMTEzNmQzZTE4ZDVjOTUzZDg5Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Yzk2OTQ4NjIxZWM3NGE3ZWMzZmJmNzQ3MDhjZTFjOTg5NDBhODk2NjA4ZWJh
10
- NjkyZDg2MTkwMzdmZDBjMWJjYTg3MjdiNjBkYTk5N2FkNmVlZTQ1OTI1ZWE2
11
- YmY5ODU2NDFkYzVmNjk4MGE0N2RjMzRkMDgwMzI2YzhkNWZlZjc=
9
+ YWU3MjRkNjA3MGZjYWI1MmU5NzA1ZjEwNjlhMGNkMjMyYmQ3MTZlMThlNTFj
10
+ NWQyMjg5MWFhODI2NmExOWY3ZGU3N2Y5MGYxMTcwNjM4MDU5ZTdlMzdmYmJi
11
+ NmQwZTVhZDhjZjJhM2EwM2RkMWUwMDgyOTM1YzBjYzg1ZDRmNGE=
12
12
  data.tar.gz: !binary |-
13
- Y2Y2NDI1MjRlNTY4M2NjMGIyMjI4NGI0NmVlN2Y1ZTJjNDk5NmUyMDlhYmJh
14
- ZjRkMzdhNTdhOTNlZWYxMDk3YjBhODJiZGI3NjIzNTA5ZDE5NmI4ZWRlN2E3
15
- YTVmZTdiYjRkYzAyMGQ4MTAwYTZkMDdmYTM4Yjg0MWQ1YmI2YmE=
13
+ MTEyZjgyNDYyOWYwY2VmMjRlOTExZjBkMDQxZDFkODdhM2NhNzhiNzY1NDBk
14
+ MGQyMmFiYzg5MTBhMjQ5ZjVhOTQ3YTYwMGRjNDZkN2FmZjBiOWE1ZWY0NWZj
15
+ YjUwNjlhNjk1M2UxZGM1ZGIyNjhiYWI4ZWE0ZDRmNzc5MmU1YmI=
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Markit
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - petehuang