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
175 176 177 178 179 180 181 182 183 |
# File 'lib/libsql.rb', line 175 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 |