Class: KRPC::Types::TupleType

Inherits:
TypeBase
  • Object
show all
Defined in:
lib/krpc/types.rb

Instance Attribute Summary collapse

Attributes inherited from TypeBase

#protobuf_type, #ruby_type

Instance Method Summary collapse

Constructor Details

#initialize(pb_type) ⇒ TupleType

Returns a new instance of TupleType.



131
132
133
134
# File 'lib/krpc/types.rb', line 131

def initialize(pb_type)
  @value_types = pb_type.types.map {|t| TypeStore[t] }
  super(pb_type, Array)
end

Instance Attribute Details

#value_typesObject (readonly)

Returns the value of attribute value_types.



130
131
132
# File 'lib/krpc/types.rb', line 130

def value_types
  @value_types
end