radar-api 0.1.3 → 0.1.4

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: 7bfe9fa7da143dd55ae428ee6435de279b0bc076
4
- data.tar.gz: d15e5d4d5b24c902a97b062728d790e128eab766
3
+ metadata.gz: 5e819a7b63af2e3e5f372d88605582fa74b7ba31
4
+ data.tar.gz: 9c64b43f3ab13fd9a823d4ed69c71487cc12b919
5
5
  SHA512:
6
- metadata.gz: b6d2f75037949a8c05ceac5a992fe0eb606267ac8f2b1f77343be7e52cc1d4aaaf0445ad1785289c927cac7f2a1c513ef2e0fc68990b31a559e5a323f7151254
7
- data.tar.gz: 755d9af23ced7583b2f28522a1ac9fb5f73c7880629c6d9243f6c3efdc4e1decfbfb9d3e826655f706ce2d43a71b328775b5aca7fe5c62bfeff57c763753212b
6
+ metadata.gz: d7c9640c95ee8860883cc56f4632f4056d03f802632686b5e1ba93d17844379de4ddac789e01c7ada727cde4a6bc2de1d475d719eade7a6396d135508c79b264
7
+ data.tar.gz: 401eb47e32f3ccf686db4a05ee7279019e22da05bf972d8c0e9cbf883946fb88149371ee0e01ea145a49c23aed444497e2d9151bede574ca5a780ef6b05212d3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.1.1)
4
+ radar-api (0.1.4)
5
5
  thrift (= 0.9.1)
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Radar
2
2
  module API
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  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.1.3
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-15 00:00:00.000000000 Z
11
+ date: 2014-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler