Class: KRPC::Types::ListType

Inherits:
TypeBase 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) ⇒ ListType

Returns a new instance of ListType.



115
116
117
118
# File 'lib/krpc/types.rb', line 115

def initialize(pb_type)
  @value_type = TypeStore[pb_type.types.first]
  super(pb_type, Array)
end

Instance Attribute Details

#value_typeObject (readonly)

Returns the value of attribute value_type.



114
115
116
# File 'lib/krpc/types.rb', line 114

def value_type
  @value_type
end