Class: CLibsql::Value
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- CLibsql::Value
- Defined in:
- lib/libsql.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#convert ⇒ Object
180 181 182 183 184 185 186 187 188 |
# File 'lib/libsql.rb', line 180 def convert case self[:type] in :null then nil in :integer then self[:value][:integer] in :real then self[:value][:real] in :text then self[:value][:text].to_s in :blob then self[:value][:blob].to_blob end end |