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.



80
81
82
83
# File 'lib/krpc/types.rb', line 80

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.



79
80
81
# File 'lib/krpc/types.rb', line 79

def protobuf_type
  @protobuf_type
end

#ruby_typeObject (readonly)

Returns the value of attribute ruby_type.



79
80
81
# File 'lib/krpc/types.rb', line 79

def ruby_type
  @ruby_type
end