radar-api 0.3.1 → 0.3.2
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/gen/radar/api/common_types.rb +25 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1723bdfc11c17f5dbd8e260cbb7bc7419a034654
|
4
|
+
data.tar.gz: 8db3a15012811c90e59c0bbc35aa29451e020a7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 748d2bfd49a3a92c6fa8bbe11db69e9922d3c6b02f150e2ca6e56412b940ac8a58fc10b303e5af91905d98314e289e1e3865557b6248fe9a4d55ee6d352de962
|
7
|
+
data.tar.gz: 347ef2735e76cba436db5c74a56db39c192507183a7c93799298657afccd9d7d61864fca6c75ce9a67b228b9274f5333836eb7e44c422a09aadc07d1f5f8ebdd
|
@@ -78,6 +78,24 @@ module Radar
|
|
78
78
|
::Thrift::Struct.generate_accessors self
|
79
79
|
end
|
80
80
|
|
81
|
+
class GovernmentBondId
|
82
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
83
|
+
NAME = 1
|
84
|
+
MATURITY_DATE = 2
|
85
|
+
|
86
|
+
FIELDS = {
|
87
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
88
|
+
MATURITY_DATE => {:type => ::Thrift::Types::I32, :name => 'maturity_date'}
|
89
|
+
}
|
90
|
+
|
91
|
+
def struct_fields; FIELDS; end
|
92
|
+
|
93
|
+
def validate
|
94
|
+
end
|
95
|
+
|
96
|
+
::Thrift::Struct.generate_accessors self
|
97
|
+
end
|
98
|
+
|
81
99
|
class SecurityId < ::Thrift::Union
|
82
100
|
include ::Thrift::Struct_Union
|
83
101
|
class << self
|
@@ -92,16 +110,22 @@ module Radar
|
|
92
110
|
def index_linked_bond(val)
|
93
111
|
SecurityId.new(:index_linked_bond, val)
|
94
112
|
end
|
113
|
+
|
114
|
+
def government_bond(val)
|
115
|
+
SecurityId.new(:government_bond, val)
|
116
|
+
end
|
95
117
|
end
|
96
118
|
|
97
119
|
STOCK = 1
|
98
120
|
FUND = 2
|
99
121
|
INDEX_LINKED_BOND = 3
|
122
|
+
GOVERNMENT_BOND = 4
|
100
123
|
|
101
124
|
FIELDS = {
|
102
125
|
STOCK => {:type => ::Thrift::Types::STRUCT, :name => 'stock', :class => ::Radar::Api::StockId},
|
103
126
|
FUND => {:type => ::Thrift::Types::STRUCT, :name => 'fund', :class => ::Radar::Api::FundId},
|
104
|
-
INDEX_LINKED_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'index_linked_bond', :class => ::Radar::Api::IndexLinkedBondId}
|
127
|
+
INDEX_LINKED_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'index_linked_bond', :class => ::Radar::Api::IndexLinkedBondId},
|
128
|
+
GOVERNMENT_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'government_bond', :class => ::Radar::Api::GovernmentBondId}
|
105
129
|
}
|
106
130
|
|
107
131
|
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.3.
|
4
|
+
version: 0.3.2
|
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: 2016-
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.4.8
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Radar API
|