Class: Rebat::Thrift::Edge

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/rebat/thrift/rebat_types.rb

Constant Summary collapse

FROMENTITYID =
1
FROMENTITYTYPE =
2
TOENTITYID =
3
TOENTITYTYPE =
4
WEIGHT =
5
RELATIONID =
6
FIELDS =
{
  FROMENTITYID => {:type => ::Thrift::Types::STRING, :name => 'fromEntityId', :optional => true},
  FROMENTITYTYPE => {:type => ::Thrift::Types::STRING, :name => 'fromEntityType', :optional => true},
  TOENTITYID => {:type => ::Thrift::Types::STRING, :name => 'toEntityId', :optional => true},
  TOENTITYTYPE => {:type => ::Thrift::Types::STRING, :name => 'toEntityType', :optional => true},
  WEIGHT => {:type => ::Thrift::Types::I64, :name => 'weight', :default => 0, :optional => true},
  RELATIONID => {:type => ::Thrift::Types::I64, :name => 'relationId', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



37
# File 'lib/rebat/thrift/rebat_types.rb', line 37

def struct_fields; FIELDS; end

#validateObject



39
40
# File 'lib/rebat/thrift/rebat_types.rb', line 39

def validate
end