Class: DB::Postgres::Native::Types::Boolean

Inherits:
Object
  • Object
show all
Defined in:
lib/db/postgres/native/types.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



53
54
55
# File 'lib/db/postgres/native/types.rb', line 53

def name
  "BOOLEAN"
end

#parse(string) ⇒ Object



57
58
59
# File 'lib/db/postgres/native/types.rb', line 57

def parse(string)
  string == 't'
end