Class: KRPC::Types::SetType

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) ⇒ SetType

Returns a new instance of SetType.



123
124
125
126
# File 'lib/krpc/types.rb', line 123

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

Instance Attribute Details

#value_typeObject (readonly)

Returns the value of attribute value_type.



122
123
124
# File 'lib/krpc/types.rb', line 122

def value_type
  @value_type
end