Class: KRPC::Types::ValueType
Instance Attribute Summary
Attributes inherited from TypeBase
Instance Method Summary collapse
-
#initialize(type_string) ⇒ ValueType
constructor
A new instance of ValueType.
Constructor Details
#initialize(type_string) ⇒ ValueType
Returns a new instance of ValueType.
143 144 145 146 |
# File 'lib/krpc/types.rb', line 143 def initialize(type_string) raise(ValueError, "\"#{type_string}\" is not a valid type string for a value type") unless PROTOBUF_TO_RUBY_VALUE_TYPE.has_key? type_string super(type_string, PROTOBUF_TO_RUBY_VALUE_TYPE[type_string]) end |