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
189 190 191 192 193 194 195 196 197 |
# File 'lib/libsql.rb', line 189 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 |