Class: QRTools::Header
- Inherits:
-
Object
- Object
- QRTools::Header
- Defined in:
- ext/qrtools/qrtools_header.c
Instance Method Summary collapse
Instance Method Details
#byte_size ⇒ Object
31 32 33 34 35 36 |
# File 'ext/qrtools/qrtools_header.c', line 31
static VALUE byte_size(VALUE self)
{
QrCodeHeader * header;
Data_Get_Struct(self, QrCodeHeader, header);
return INT2NUM(header->byte_size);
}
|
#character_size ⇒ Object
24 25 26 27 28 29 |
# File 'ext/qrtools/qrtools_header.c', line 24
static VALUE character_size(VALUE self)
{
QrCodeHeader * header;
Data_Get_Struct(self, QrCodeHeader, header);
return INT2NUM(header->charactor_size);
}
|
#level ⇒ Object
17 18 19 20 21 22 |
# File 'ext/qrtools/qrtools_header.c', line 17
static VALUE level(VALUE self)
{
QrCodeHeader * header;
Data_Get_Struct(self, QrCodeHeader, header);
return INT2NUM(header->level);
}
|
#model ⇒ Object
3 4 5 6 7 8 |
# File 'ext/qrtools/qrtools_header.c', line 3
static VALUE model(VALUE self)
{
QrCodeHeader * header;
Data_Get_Struct(self, QrCodeHeader, header);
return INT2NUM(header->model);
}
|
#version ⇒ Object
10 11 12 13 14 15 |
# File 'ext/qrtools/qrtools_header.c', line 10
static VALUE version(VALUE self)
{
QrCodeHeader * header;
Data_Get_Struct(self, QrCodeHeader, header);
return INT2NUM(header->version);
}
|