radar-api 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/gen/radar/api/common_types.rb +25 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: caa6d5ca82d99f9d17b7950b2380deb2feaeb496
4
- data.tar.gz: b44a6bdf5e9c851fcca5d015a320d5688383fc32
3
+ metadata.gz: 1723bdfc11c17f5dbd8e260cbb7bc7419a034654
4
+ data.tar.gz: 8db3a15012811c90e59c0bbc35aa29451e020a7b
5
5
  SHA512:
6
- metadata.gz: 57db3df36b65d75f477639d3f2075442b099b37596736fe55ea45a8464a745395b44c75cd091c26a53ca1b4096b223cdf4b8fa9422cab94224ff9e6b0e616d20
7
- data.tar.gz: 9ccd052e7c6901018fe96ad91e8c6d5ab597e3c8284706234be3016ddb1963bd8dcdbc14596c13322310c997a8bce3442c370c99da452dcf0519dbfb3002b20f
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.1
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-08-28 00:00:00.000000000 Z
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.2.1
106
+ rubygems_version: 2.4.8
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Radar API