Module: KRPC::Types
- Defined in:
- lib/krpc/types.rb
Defined Under Namespace
Classes: ClassType, DictionaryType, EnumType, ListType, MessageType, SetType, TupleType, TypeBase, TypeStore, ValueType
Constant Summary collapse
- PROTOBUF_TO_RUBY_VALUE_TYPES =
{ DOUBLE: Float, FLOAT: Float, SINT32: Integer, SINT64: Integer, UINT32: Integer, UINT64: Integer, BOOL: Boolean, STRING: String, BYTES: Array }
- PROTOBUF_TO_RUBY_MESSAGE_TYPES =
{ EVENT: PB::Event, PROCEDURE_CALL: PB::ProcedureCall, STREAM: PB::Stream, STATUS: PB::Status, SERVICES: PB::Services }
- PROTOBUF_TYPE_CODE_TO_TYPE_TYPE =
PROTOBUF_TO_RUBY_VALUE_TYPES.keys.inject({}) {|a,e| a[e] = ValueType; a }.merge( PROTOBUF_TO_RUBY_MESSAGE_TYPES.keys.inject({}) {|a,e| a[e] = MessageType; a }).merge( CLASS: ClassType, ENUMERATION: EnumType, LIST: ListType, SET: SetType, TUPLE: TupleType, DICTIONARY: DictionaryType )