radar-api 0.4.1 → 0.5.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
  SHA1:
3
- metadata.gz: 8c0e90cab42bf8ae5f2b7b1115fd9d159ed26eeb
4
- data.tar.gz: 3feb4370e339f0a1ed4ea6245131907f9a18db7a
3
+ metadata.gz: c31693037ad9cd30d91476ee48610d3630d4d6d5
4
+ data.tar.gz: 7c07d27f69b9777ad7e19dc20e22567a8ce86f7c
5
5
  SHA512:
6
- metadata.gz: 2acf0b6ee13e396cdcbdf22adb4309ac48d3b9787730c9e55d952c693f986e216ceb517f92e56cd9742c05a74df9869d9c148672f99cd7542cb406b2a8bc0869
7
- data.tar.gz: 71c8c669d85fe81b0e619f1bb88eef7112422621685d78e72196645b9a337011674528b88fc006159144ef1705ea60e19d4f519f727fb3469a1f81490eee433f
6
+ metadata.gz: 345a6686f02043eef2fe099468beb7d652e9de5ecb5849d8a131cf775da03a0befacf9b521f799cfe9eaa6acbe86032b5e54475270aff0b753b78244307c4f4c
7
+ data.tar.gz: 4c6ed554e7587d9f3714604a158316527cb0e80853781d2c77cdc88aa9b9a24eb8969aa0eb1dd2fd391f8f4e1f03839ee2adf8c8d8a1b3d8887f23fd2d2294ee
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.4.1)
4
+ radar-api (0.5.0)
5
5
  thrift (~> 0.9.0)
6
6
 
7
7
  GEM
@@ -98,6 +98,24 @@ module Radar
98
98
  ::Thrift::Struct.generate_accessors self
99
99
  end
100
100
 
101
+ class CustomSecurityId
102
+ include ::Thrift::Struct, ::Thrift::Struct_Union
103
+ USER_ID = 1
104
+ ID = 2
105
+
106
+ FIELDS = {
107
+ USER_ID => {:type => ::Thrift::Types::STRING, :name => 'user_id'},
108
+ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
109
+ }
110
+
111
+ def struct_fields; FIELDS; end
112
+
113
+ def validate
114
+ end
115
+
116
+ ::Thrift::Struct.generate_accessors self
117
+ end
118
+
101
119
  class SecurityId < ::Thrift::Union
102
120
  include ::Thrift::Struct_Union
103
121
  class << self
@@ -116,18 +134,24 @@ module Radar
116
134
  def government_bond(val)
117
135
  SecurityId.new(:government_bond, val)
118
136
  end
137
+
138
+ def custom_security(val)
139
+ SecurityId.new(:custom_security, val)
140
+ end
119
141
  end
120
142
 
121
143
  STOCK = 1
122
144
  FUND = 2
123
145
  CORPORATE_BOND = 3
124
146
  GOVERNMENT_BOND = 4
147
+ CUSTOM_SECURITY = 5
125
148
 
126
149
  FIELDS = {
127
150
  STOCK => {:type => ::Thrift::Types::STRUCT, :name => 'stock', :class => ::Radar::Api::StockId},
128
151
  FUND => {:type => ::Thrift::Types::STRUCT, :name => 'fund', :class => ::Radar::Api::FundId},
129
152
  CORPORATE_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'corporate_bond', :class => ::Radar::Api::CorporateBondId},
130
- GOVERNMENT_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'government_bond', :class => ::Radar::Api::GovernmentBondId}
153
+ GOVERNMENT_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'government_bond', :class => ::Radar::Api::GovernmentBondId},
154
+ CUSTOM_SECURITY => {:type => ::Thrift::Types::STRUCT, :name => 'custom_security', :class => ::Radar::Api::CustomSecurityId}
131
155
  }
132
156
 
133
157
  def struct_fields; FIELDS; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler