Class: Perpetuity::Postgres::BooleanValue
- Inherits:
-
Object
- Object
- Perpetuity::Postgres::BooleanValue
- Defined in:
- lib/perpetuity/postgres/boolean_value.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ BooleanValue
constructor
A new instance of BooleanValue.
- #to_s ⇒ Object
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_s ⇒ Object
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 |