Class: Radar::API::Portfolio

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/radar/api/radar_types.rb

Constant Summary collapse

DATE =
1
POSITIONS =
2
RENTABILITY =
3
4
CASH =
5
PROVISIONS =
6
FIELDS =
{
  DATE => {:type => ::Thrift::Types::I32, :name => 'date'},
  POSITIONS => {:type => ::Thrift::Types::LIST, :name => 'positions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::API::Position}},
  RENTABILITY => {:type => ::Thrift::Types::DOUBLE, :name => 'rentability'},
  NAV => {:type => ::Thrift::Types::DOUBLE, :name => 'nav'},
  CASH => {:type => ::Thrift::Types::DOUBLE, :name => 'cash'},
  # Criado na versão 0.2.1
  PROVISIONS => {:type => ::Thrift::Types::LIST, :name => 'provisions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::API::Provision}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



606
# File 'lib/radar/api/radar_types.rb', line 606

def struct_fields; FIELDS; end

#validateObject



608
609
# File 'lib/radar/api/radar_types.rb', line 608

def validate
end