Class: AlgebraDB::Value::Bool

Inherits:
AlgebraDB::Value show all
Defined in:
lib/algebra_db/value/bool.rb

Overview

Represents a Postgres boolean value.

Defined Under Namespace

Classes: Decoder

Instance Attribute Summary

Attributes inherited from AlgebraDB::Value

#builder

Instance Method Summary collapse

Methods inherited from AlgebraDB::Value

#render_syntax, #to_select_item

Methods included from Operations::Definition

#binop

Instance Method Details

#and(other) ⇒ Object



6
7
8
9
10
# File 'lib/algebra_db/value/bool.rb', line 6

def and(other)
  Value::Bool.new(
    Build::Op.new('AND', self, other)
  )
end

#decoderObject



26
27
28
# File 'lib/algebra_db/value/bool.rb', line 26

def decoder
  Decoder.new
end

#or(other) ⇒ Object



12
13
14
15
16
# File 'lib/algebra_db/value/bool.rb', line 12

def or(other)
  Value::Bool.new(
    Build::Op.new('OR', self, other)
  )
end