radar-api 0.4.1 → 0.5.0
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/gen/radar/api/common_types.rb +25 -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: c31693037ad9cd30d91476ee48610d3630d4d6d5
|
|
4
|
+
data.tar.gz: 7c07d27f69b9777ad7e19dc20e22567a8ce86f7c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 345a6686f02043eef2fe099468beb7d652e9de5ecb5849d8a131cf775da03a0befacf9b521f799cfe9eaa6acbe86032b5e54475270aff0b753b78244307c4f4c
|
|
7
|
+
data.tar.gz: 4c6ed554e7587d9f3714604a158316527cb0e80853781d2c77cdc88aa9b9a24eb8969aa0eb1dd2fd391f8f4e1f03839ee2adf8c8d8a1b3d8887f23fd2d2294ee
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
+
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-
|
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|