radar-api 0.8.3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/gen/radar/api/common_types.rb +22 -0
- data/gen/radar/api/portfolio_service.rb +54 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7238fbc992951469e819ec774d4a3ac0e05374d7
|
4
|
+
data.tar.gz: 21ff24ec13bd8fe099921db93f9dcc0e72a73396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d481fc71f583bc4cde75e5ec8c380e6e18e7c5e3ec90240c1525b5b8f05cb71c292fc886a6d7e9a0158c282226514b059706ea5ec51758df73fcbeba355af90
|
7
|
+
data.tar.gz: 17d818db55fd10b095cdc2e516b4a9d282c2beb80f8eaa1ebc7c8f7393968870daaeadccd6ee0b7a257787d5b31a462a052dadb3823e53b8a47b68dd0d998c3a
|
data/Gemfile.lock
CHANGED
@@ -22,6 +22,8 @@ module Radar
|
|
22
22
|
|
23
23
|
class SecurityId < ::Thrift::Union; end
|
24
24
|
|
25
|
+
class Broker; end
|
26
|
+
|
25
27
|
class StockId
|
26
28
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
27
29
|
SYMBOL = 1
|
@@ -177,5 +179,25 @@ module Radar
|
|
177
179
|
::Thrift::Union.generate_accessors self
|
178
180
|
end
|
179
181
|
|
182
|
+
class Broker
|
183
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
184
|
+
CODE = 1
|
185
|
+
NAME = 2
|
186
|
+
SEGMENT = 3
|
187
|
+
|
188
|
+
FIELDS = {
|
189
|
+
CODE => {:type => ::Thrift::Types::STRING, :name => 'code'},
|
190
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
191
|
+
SEGMENT => {:type => ::Thrift::Types::STRING, :name => 'segment'}
|
192
|
+
}
|
193
|
+
|
194
|
+
def struct_fields; FIELDS; end
|
195
|
+
|
196
|
+
def validate
|
197
|
+
end
|
198
|
+
|
199
|
+
::Thrift::Struct.generate_accessors self
|
200
|
+
end
|
201
|
+
|
180
202
|
end
|
181
203
|
end
|
@@ -42,6 +42,20 @@ module Radar
|
|
42
42
|
return
|
43
43
|
end
|
44
44
|
|
45
|
+
def persist_brokers(brokers, user)
|
46
|
+
send_persist_brokers(brokers, user)
|
47
|
+
recv_persist_brokers()
|
48
|
+
end
|
49
|
+
|
50
|
+
def send_persist_brokers(brokers, user)
|
51
|
+
send_message('persist_brokers', Persist_brokers_args, :brokers => brokers, :user => user)
|
52
|
+
end
|
53
|
+
|
54
|
+
def recv_persist_brokers()
|
55
|
+
result = receive_message(Persist_brokers_result)
|
56
|
+
return
|
57
|
+
end
|
58
|
+
|
45
59
|
end
|
46
60
|
|
47
61
|
class Processor
|
@@ -61,6 +75,13 @@ module Radar
|
|
61
75
|
write_result(result, oprot, 'persist', seqid)
|
62
76
|
end
|
63
77
|
|
78
|
+
def process_persist_brokers(seqid, iprot, oprot)
|
79
|
+
args = read_args(iprot, Persist_brokers_args)
|
80
|
+
result = Persist_brokers_result.new()
|
81
|
+
@handler.persist_brokers(args.brokers, args.user)
|
82
|
+
write_result(result, oprot, 'persist_brokers', seqid)
|
83
|
+
end
|
84
|
+
|
64
85
|
end
|
65
86
|
|
66
87
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -134,6 +155,39 @@ module Radar
|
|
134
155
|
::Thrift::Struct.generate_accessors self
|
135
156
|
end
|
136
157
|
|
158
|
+
class Persist_brokers_args
|
159
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
160
|
+
BROKERS = 1
|
161
|
+
USER = 2
|
162
|
+
|
163
|
+
FIELDS = {
|
164
|
+
BROKERS => {:type => ::Thrift::Types::LIST, :name => 'brokers', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::Broker}},
|
165
|
+
USER => {:type => ::Thrift::Types::STRING, :name => 'user'}
|
166
|
+
}
|
167
|
+
|
168
|
+
def struct_fields; FIELDS; end
|
169
|
+
|
170
|
+
def validate
|
171
|
+
end
|
172
|
+
|
173
|
+
::Thrift::Struct.generate_accessors self
|
174
|
+
end
|
175
|
+
|
176
|
+
class Persist_brokers_result
|
177
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
178
|
+
|
179
|
+
FIELDS = {
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
def struct_fields; FIELDS; end
|
184
|
+
|
185
|
+
def validate
|
186
|
+
end
|
187
|
+
|
188
|
+
::Thrift::Struct.generate_accessors self
|
189
|
+
end
|
190
|
+
|
137
191
|
end
|
138
192
|
|
139
193
|
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
|
+
version: 0.9.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: 2019-
|
11
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|