Class: Schema::CodeGeneratorRequest::RequestedFile::Import
- Inherits:
-
Capnp::Struct
- Object
- Capnp::Struct
- Schema::CodeGeneratorRequest::RequestedFile::Import
- 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
#id ⇒ Object
1278 |
# File 'lib/capnp/generator/schema.capnp.rb', line 1278 def id = read_u64(0, 0) |
#name ⇒ Object
1281 |
# File 'lib/capnp/generator/schema.capnp.rb', line 1281 def name = Capnp::BufferString.from_pointer(read_pointer(0)) |
#to_obj ⇒ Object
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 |