Class: Schema::Type::GroupInterface

Inherits:
Capnp::Struct show all
Defined in:
lib/capnp/generator/schema.capnp.rb

Constant Summary collapse

DEFAULT_TYPE_ID =
0

Instance Method Summary collapse

Methods inherited from Capnp::Struct

decode_pointer, from_pointer, #initialize

Constructor Details

This class inherits a constructor from Capnp::Struct

Instance Method Details

#brandObject



665
# File 'lib/capnp/generator/schema.capnp.rb', line 665

def brand = Schema::Brand.from_pointer(read_pointer(0))

#to_objObject



667
668
669
670
671
672
# File 'lib/capnp/generator/schema.capnp.rb', line 667

def to_obj
  res = {}
  res["type_id"] = type_id
  res["brand"] = brand&.to_obj
  res
end

#type_idObject



663
# File 'lib/capnp/generator/schema.capnp.rb', line 663

def type_id = read_u64(8, 0)