Class: OCI8::BindType::Date

Inherits:
OraDate show all
Defined in:
lib/oci8/bindtype.rb

Overview

get/set Date

Instance Method Summary collapse

Instance Method Details

#getObject



22
23
24
# File 'lib/oci8/bindtype.rb', line 22

def get()
  (val = super()) && val.to_date
end

#set(val) ⇒ Object



19
20
21
# File 'lib/oci8/bindtype.rb', line 19

def set(val)
  super(val && ::OraDate.new(val.year, val.mon, val.mday))
end