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