radar-api 0.1.3 → 0.1.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/radar/api/security_service.rb +54 -0
- data/lib/radar/api/version.rb +1 -1
- 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: 5e819a7b63af2e3e5f372d88605582fa74b7ba31
|
4
|
+
data.tar.gz: 9c64b43f3ab13fd9a823d4ed69c71487cc12b919
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c9640c95ee8860883cc56f4632f4056d03f802632686b5e1ba93d17844379de4ddac789e01c7ada727cde4a6bc2de1d475d719eade7a6396d135508c79b264
|
7
|
+
data.tar.gz: 401eb47e32f3ccf686db4a05ee7279019e22da05bf972d8c0e9cbf883946fb88149371ee0e01ea145a49c23aed444497e2d9151bede574ca5a780ef6b05212d3
|
data/Gemfile.lock
CHANGED
@@ -13,6 +13,21 @@ module Radar
|
|
13
13
|
class Client
|
14
14
|
include ::Thrift::Client
|
15
15
|
|
16
|
+
def short_name(id)
|
17
|
+
send_short_name(id)
|
18
|
+
return recv_short_name()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_short_name(id)
|
22
|
+
send_message('short_name', Short_name_args, :id => id)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_short_name()
|
26
|
+
result = receive_message(Short_name_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'short_name failed: unknown result')
|
29
|
+
end
|
30
|
+
|
16
31
|
def prices(id, start_date, end_date)
|
17
32
|
send_prices(id, start_date, end_date)
|
18
33
|
return recv_prices()
|
@@ -93,6 +108,13 @@ module Radar
|
|
93
108
|
class Processor
|
94
109
|
include ::Thrift::Processor
|
95
110
|
|
111
|
+
def process_short_name(seqid, iprot, oprot)
|
112
|
+
args = read_args(iprot, Short_name_args)
|
113
|
+
result = Short_name_result.new()
|
114
|
+
result.success = @handler.short_name(args.id)
|
115
|
+
write_result(result, oprot, 'short_name', seqid)
|
116
|
+
end
|
117
|
+
|
96
118
|
def process_prices(seqid, iprot, oprot)
|
97
119
|
args = read_args(iprot, Prices_args)
|
98
120
|
result = Prices_result.new()
|
@@ -132,6 +154,38 @@ module Radar
|
|
132
154
|
|
133
155
|
# HELPER FUNCTIONS AND STRUCTURES
|
134
156
|
|
157
|
+
class Short_name_args
|
158
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
159
|
+
ID = 1
|
160
|
+
|
161
|
+
FIELDS = {
|
162
|
+
ID => {:type => ::Thrift::Types::STRUCT, :name => 'id', :class => ::Radar::API::SecurityId}
|
163
|
+
}
|
164
|
+
|
165
|
+
def struct_fields; FIELDS; end
|
166
|
+
|
167
|
+
def validate
|
168
|
+
end
|
169
|
+
|
170
|
+
::Thrift::Struct.generate_accessors self
|
171
|
+
end
|
172
|
+
|
173
|
+
class Short_name_result
|
174
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
175
|
+
SUCCESS = 0
|
176
|
+
|
177
|
+
FIELDS = {
|
178
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
179
|
+
}
|
180
|
+
|
181
|
+
def struct_fields; FIELDS; end
|
182
|
+
|
183
|
+
def validate
|
184
|
+
end
|
185
|
+
|
186
|
+
::Thrift::Struct.generate_accessors self
|
187
|
+
end
|
188
|
+
|
135
189
|
class Prices_args
|
136
190
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
137
191
|
ID = 1
|
data/lib/radar/api/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.4
|
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: 2014-04-
|
11
|
+
date: 2014-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|