moex 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d833f6061d7a6784b6a87036344d55c3dd82733f11f770179796948135dee2cc
4
- data.tar.gz: 7a7d0bee03c1f529b50dbfa28fd760d2f634ce1c4277440157a756c6d4d30acb
3
+ metadata.gz: 4593f61647e8485a5a60aac54739662ce72d57304867429d210cb8cc7eb60627
4
+ data.tar.gz: 882ab7ed7c10e7aa904e3b8408984d9df7aef92865555482f00a4b0c21901781
5
5
  SHA512:
6
- metadata.gz: 251820c76910dcae01fdce3f0871c2295a2578aa26fa0b7e0354ce86c48ae290303971461ca0e09f92193c512d7cdfb220386e6285f9aece739a9b4c8772b29f
7
- data.tar.gz: 9fc193be6b1cb6bfe9c1635cb9600161c54953326a154f48560b91b227d9ec9ce656df3b893a5545ddc09286b48bee923c0e070248c228aaff49a66af9c1c334
6
+ metadata.gz: d36ed11e10c47850a91edf2a77d9ceca8f69bd76ac48a6096ae7fb1652074a8d0087a91251b1630c7e5b4cb9fb6eb01fa0821b28049d54c331489e646b706970
7
+ data.tar.gz: eb50d5c0b014884320175882f20591c9777f5b3cf28cd1fad6213c1a31b31d4a5ebdd916d1089281e82354ac33c119bdbc253fa75b09a5be9e335a7eba949b7e
@@ -100,6 +100,7 @@ module Moex
100
100
 
101
101
  price_table.each do |row|
102
102
  yielder << Resources::Price.new(
103
+ row.fetch(:tradedate),
103
104
  row.fetch(:secid),
104
105
  row.fetch(:close)
105
106
  )
@@ -4,11 +4,14 @@ module Moex
4
4
  module Resources
5
5
  # Security price
6
6
  #
7
+ # @!attribute trade_date
8
+ # @return [String] trade date, format YYYY-MM-DD
9
+ #
7
10
  # @!attribute sec_id
8
11
  # @return [String] security ticker symbol
9
12
  #
10
13
  # @!attribute close_price
11
14
  # @return [Numeric] closing price
12
- Price = Struct.new(:sec_id, :close_price)
15
+ Price = Struct.new(:trade_date, :sec_id, :close_price)
13
16
  end
14
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - konstantin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-21 00:00:00.000000000 Z
11
+ date: 2018-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday