Class: OCI8::TDO::Attr
- Inherits:
-
Object
- Object
- OCI8::TDO::Attr
- Defined in:
- lib/oci8/object.rb
Instance Attribute Summary collapse
-
#alignment ⇒ Object
readonly
Returns the value of attribute alignment.
-
#datatype ⇒ Object
readonly
Returns the value of attribute datatype.
-
#get_proc ⇒ Object
readonly
Returns the value of attribute get_proc.
-
#ind_offset ⇒ Object
readonly
Returns the value of attribute ind_offset.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#set_proc ⇒ Object
readonly
Returns the value of attribute set_proc.
-
#typeinfo ⇒ Object
readonly
Returns the value of attribute typeinfo.
-
#val_offset ⇒ Object
readonly
Returns the value of attribute val_offset.
Instance Method Summary collapse
-
#initialize(con, metadata, val_offset, ind_offset) ⇒ Attr
constructor
A new instance of Attr.
- #next_offset ⇒ Object
Constructor Details
#initialize(con, metadata, val_offset, ind_offset) ⇒ Attr
Returns a new instance of Attr.
532 533 534 535 536 537 538 539 |
# File 'lib/oci8/object.rb', line 532 def initialize(con, , val_offset, ind_offset) if .respond_to? :name @name = .name.downcase.intern end @datatype, @typeinfo, @val_size, @ind_size, @alignment, @set_proc, @get_proc, = OCI8::TDO.(con, ) @val_offset = (val_offset + @alignment - 1) & ~(@alignment - 1) @ind_offset = ind_offset end |
Instance Attribute Details
#alignment ⇒ Object (readonly)
Returns the value of attribute alignment.
527 528 529 |
# File 'lib/oci8/object.rb', line 527 def alignment @alignment end |
#datatype ⇒ Object (readonly)
Returns the value of attribute datatype.
528 529 530 |
# File 'lib/oci8/object.rb', line 528 def datatype @datatype end |
#get_proc ⇒ Object (readonly)
Returns the value of attribute get_proc.
531 532 533 |
# File 'lib/oci8/object.rb', line 531 def get_proc @get_proc end |
#ind_offset ⇒ Object (readonly)
Returns the value of attribute ind_offset.
526 527 528 |
# File 'lib/oci8/object.rb', line 526 def ind_offset @ind_offset end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
524 525 526 |
# File 'lib/oci8/object.rb', line 524 def name @name end |
#set_proc ⇒ Object (readonly)
Returns the value of attribute set_proc.
530 531 532 |
# File 'lib/oci8/object.rb', line 530 def set_proc @set_proc end |
#typeinfo ⇒ Object (readonly)
Returns the value of attribute typeinfo.
529 530 531 |
# File 'lib/oci8/object.rb', line 529 def typeinfo @typeinfo end |
#val_offset ⇒ Object (readonly)
Returns the value of attribute val_offset.
525 526 527 |
# File 'lib/oci8/object.rb', line 525 def val_offset @val_offset end |
Instance Method Details
#next_offset ⇒ Object
540 541 542 |
# File 'lib/oci8/object.rb', line 540 def next_offset [@val_offset + @val_size, @ind_offset + @ind_size] end |