Class: KRPC::Types::MessageType
Instance Attribute Summary
Attributes inherited from TypeBase
Instance Method Summary collapse
-
#initialize(pb_type) ⇒ MessageType
constructor
A new instance of MessageType.
Constructor Details
#initialize(pb_type) ⇒ MessageType
Returns a new instance of MessageType.
146 147 148 |
# File 'lib/krpc/types.rb', line 146 def initialize(pb_type) super(pb_type, PROTOBUF_TO_RUBY_MESSAGE_TYPES[pb_type.code] || raise(ValueError, "\"#{pb_type.code}\" is not a valid type code for a message type")) end |