Method: KRPC::Types::MessageType#initialize

Defined in:
lib/krpc/types.rb

#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