Class: DB::Postgres::Native::Types::JSON

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

Instance Method Summary collapse

Instance Method Details

#nameObject



125
126
127
# File 'lib/db/postgres/native/types.rb', line 125

def name
	"JSON"
end

#parse(string) ⇒ Object



129
130
131
# File 'lib/db/postgres/native/types.rb', line 129

def parse(string)
	::JSON.parse(string, symbolize_names: true) if string
end