Class: Schema::CodeGeneratorRequest::RequestedFile::Import

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

Defined Under Namespace

Classes: List

Constant Summary collapse

DEFAULT_ID =
0
DEFAULT_NAME =
nil

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

#idObject



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

def id = read_u64(0, 0)

#nameObject



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

def name = Capnp::BufferString.from_pointer(read_pointer(0))

#to_objObject



1289
1290
1291
1292
1293
1294
# File 'lib/capnp/generator/schema.capnp.rb', line 1289

def to_obj
  res = {}
  res["id"] = id
  res["name"] = name&.to_obj
  res
end