Class: Schema::Annotation
Defined Under Namespace
Classes: List
Constant Summary
collapse
- DEFAULT_ID =
0
Instance Method Summary
collapse
decode_pointer, from_pointer, #initialize
Constructor Details
This class inherits a constructor from Capnp::Struct
Instance Method Details
#brand ⇒ Object
1182
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1182
def brand = Schema::Brand.from_pointer(read_pointer(1))
|
#id ⇒ Object
1180
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1180
def id = read_u64(0, 0)
|
#to_obj ⇒ Object
1192
1193
1194
1195
1196
1197
1198
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1192
def to_obj
res = {}
res["id"] = id
res["brand"] = brand&.to_obj
res["value"] = value&.to_obj
res
end
|
#value ⇒ Object
1184
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1184
def value = Schema::Value.from_pointer(read_pointer(0))
|