Class: OCI8::BindType::Date

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

Overview

get/set Date

Instance Method Summary collapse

Instance Method Details

#getObject



177
178
179
# File 'lib/oci8/oci8.rb', line 177

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

#set(val) ⇒ Object



174
175
176
# File 'lib/oci8/oci8.rb', line 174

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