Class: OCI8::BindType::Date

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

Overview

get/set Date

Instance Method Summary collapse

Instance Method Details

#getObject


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

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

#set(val) ⇒ Object


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

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