Class: DB::Postgres::Native::Types::Decimal

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

Instance Method Summary collapse

Instance Method Details

#nameObject



63
64
65
# File 'lib/db/postgres/native/types.rb', line 63

def name
	"DECIMAL"
end

#parse(string) ⇒ Object



67
68
69
# File 'lib/db/postgres/native/types.rb', line 67

def parse(string)
	BigDecimal(string) if string
end