Class: Schema::Superclass
- Inherits:
-
Capnp::Struct
- Object
- Capnp::Struct
- Schema::Superclass
- Defined in:
- lib/capnp/generator/schema.capnp.rb
Defined Under Namespace
Classes: List
Constant Summary collapse
- DEFAULT_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
#brand ⇒ Object
489 |
# File 'lib/capnp/generator/schema.capnp.rb', line 489 def brand = Schema::Brand.from_pointer(read_pointer(0)) |
#id ⇒ Object
487 |
# File 'lib/capnp/generator/schema.capnp.rb', line 487 def id = read_u64(0, 0) |
#to_obj ⇒ Object
497 498 499 500 501 502 |
# File 'lib/capnp/generator/schema.capnp.rb', line 497 def to_obj res = {} res["id"] = id res["brand"] = brand&.to_obj res end |