Class: KRPC::Types::TypeBase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protobuf_type, ruby_type) ⇒ TypeBase

Returns a new instance of TypeBase.



118
119
120
121
# File 'lib/krpc/types.rb', line 118

def initialize(protobuf_type, ruby_type)
  @protobuf_type = protobuf_type
  @ruby_type = ruby_type
end

Instance Attribute Details

#protobuf_typeObject (readonly)

Returns the value of attribute protobuf_type.



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

def protobuf_type
  @protobuf_type
end

#ruby_typeObject (readonly)

Returns the value of attribute ruby_type.



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

def ruby_type
  @ruby_type
end