Class: OCI8::NamedCollection

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

Instance Method Summary collapse

Instance Method Details

#attributesObject



541
542
543
544
# File 'lib/oci8/object.rb', line 541

def attributes
  attr = tdo.coll_attr
  get_coll_element(attr.datatype, attr.typeinfo)
end

#attributes=(obj) ⇒ Object



546
547
548
549
# File 'lib/oci8/object.rb', line 546

def attributes=(obj)
  attr = tdo.coll_attr
  set_coll_element(attr.datatype, attr.typeinfo, obj.to_ary)
end

#to_valueObject



532
533
534
535
536
537
538
539
# File 'lib/oci8/object.rb', line 532

def to_value
  attr = self.attributes
  if attr
    obj = tdo.ruby_class.new
    obj.instance_variable_set(:@attributes, attr)
    obj
  end
end