radar-api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/radar/api/radar_types.rb +55 -1
- 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: 10f2f724f30721a3979467ffa4d4e5b488feb5ca
|
4
|
+
data.tar.gz: 3f5e15c5c580042321e44e08d3a151002c32bdfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08775ddf183fefd32260ea0fc7a6a6207c0ab37d3da91b03bde408e2d43d053b85a47d847fdd23bbe573181cfd7e21e1a3e1d437d92a43d4b2e06f28e083ed02
|
7
|
+
data.tar.gz: 5650b38a85cc0eaf984f818a7ad726241d27b492f1f4d6e60a7c0c7391e95a00dba7c4e572ee7ca8668e72c103cd0b2db2e5d7948837d483b765a61e2226ee9c
|
@@ -504,6 +504,57 @@ module Radar
|
|
504
504
|
::Thrift::Struct.generate_accessors self
|
505
505
|
end
|
506
506
|
|
507
|
+
# Criado na versão 0.2.1
|
508
|
+
class Settlement < ::Thrift::Union
|
509
|
+
include ::Thrift::Struct_Union
|
510
|
+
class << self
|
511
|
+
def date(val)
|
512
|
+
Settlement.new(:date, val)
|
513
|
+
end
|
514
|
+
|
515
|
+
def period(val)
|
516
|
+
Settlement.new(:period, val)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
DATE = 1
|
521
|
+
PERIOD = 2
|
522
|
+
|
523
|
+
FIELDS = {
|
524
|
+
DATE => {:type => ::Thrift::Types::I32, :name => 'date'},
|
525
|
+
PERIOD => {:type => ::Thrift::Types::I16, :name => 'period'}
|
526
|
+
}
|
527
|
+
|
528
|
+
def struct_fields; FIELDS; end
|
529
|
+
|
530
|
+
def validate
|
531
|
+
raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
|
532
|
+
end
|
533
|
+
|
534
|
+
::Thrift::Union.generate_accessors self
|
535
|
+
end
|
536
|
+
|
537
|
+
# Criado na versão 0.2.1
|
538
|
+
class Provision
|
539
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
540
|
+
VALUE = 1
|
541
|
+
DESCRIPTION = 2
|
542
|
+
SETTLEMENT = 3
|
543
|
+
|
544
|
+
FIELDS = {
|
545
|
+
VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'},
|
546
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'},
|
547
|
+
SETTLEMENT => {:type => ::Thrift::Types::STRUCT, :name => 'settlement', :class => ::Radar::API::Settlement}
|
548
|
+
}
|
549
|
+
|
550
|
+
def struct_fields; FIELDS; end
|
551
|
+
|
552
|
+
def validate
|
553
|
+
end
|
554
|
+
|
555
|
+
::Thrift::Struct.generate_accessors self
|
556
|
+
end
|
557
|
+
|
507
558
|
class Portfolio
|
508
559
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
509
560
|
DATE = 1
|
@@ -511,13 +562,16 @@ module Radar
|
|
511
562
|
RENTABILITY = 3
|
512
563
|
NAV = 4
|
513
564
|
CASH = 5
|
565
|
+
PROVISIONS = 6
|
514
566
|
|
515
567
|
FIELDS = {
|
516
568
|
DATE => {:type => ::Thrift::Types::I32, :name => 'date'},
|
517
569
|
POSITIONS => {:type => ::Thrift::Types::LIST, :name => 'positions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::API::Position}},
|
518
570
|
RENTABILITY => {:type => ::Thrift::Types::DOUBLE, :name => 'rentability'},
|
519
571
|
NAV => {:type => ::Thrift::Types::DOUBLE, :name => 'nav'},
|
520
|
-
CASH => {:type => ::Thrift::Types::DOUBLE, :name => 'cash'}
|
572
|
+
CASH => {:type => ::Thrift::Types::DOUBLE, :name => 'cash'},
|
573
|
+
# Criado na versão 0.2.1
|
574
|
+
PROVISIONS => {:type => ::Thrift::Types::LIST, :name => 'provisions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::API::Provision}}
|
521
575
|
}
|
522
576
|
|
523
577
|
def struct_fields; FIELDS; end
|
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.2.
|
4
|
+
version: 0.2.1
|
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-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|