Class: Schema::Annotation

Inherits:
Capnp::Struct show all
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

#brandObject



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

def brand = Schema::Brand.from_pointer(read_pointer(1))

#idObject



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

def id = read_u64(0, 0)

#to_objObject



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

#valueObject



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

def value = Schema::Value.from_pointer(read_pointer(0))