Class: Perpetuity::Postgres::BooleanValue

Inherits:
Object
  • Object
show all
Defined in:
lib/perpetuity/postgres/boolean_value.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ BooleanValue

Returns a new instance of BooleanValue.



4
5
6
# File 'lib/perpetuity/postgres/boolean_value.rb', line 4

def initialize value
  @value = value
end

Instance Method Details

#to_sObject



8
9
10
11
12
13
14
# File 'lib/perpetuity/postgres/boolean_value.rb', line 8

def to_s
  if @value
    'TRUE'
  else
    'FALSE'
  end
end