Class: Schema::CapnpVersion

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

Defined Under Namespace

Classes: List

Constant Summary collapse

DEFAULT_MAJOR =
0
DEFAULT_MINOR =
0
DEFAULT_MICRO =
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

#majorObject



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

def major = read_u16(0, 0)

#microObject



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

def micro = read_u8(3, 0)

#minorObject



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

def minor = read_u8(2, 0)

#to_objObject



1246
1247
1248
1249
1250
1251
1252
# File 'lib/capnp/generator/schema.capnp.rb', line 1246

def to_obj
  res = {}
  res["major"] = major
  res["minor"] = minor
  res["micro"] = micro
  res
end