Class: HRecordPtr
- Inherits:
-
Object
- Object
- HRecordPtr
- Defined in:
- lib/hdb/hodb.rb
Instance Attribute Summary collapse
-
#odb ⇒ Object
readonly
Returns the value of attribute odb.
-
#tableCursor ⇒ Object
readonly
Returns the value of attribute tableCursor.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(odb, type = nil) ⇒ HRecordPtr
constructor
A new instance of HRecordPtr.
- #method_missing(sym, *args, &block) ⇒ Object
Constructor Details
#initialize(odb, type = nil) ⇒ HRecordPtr
Returns a new instance of HRecordPtr.
63 64 65 66 67 |
# File 'lib/hdb/hodb.rb', line 63 def initialize(odb, type = nil) @odb = odb @tableCursor = @odb.tableCursor @type = type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/hdb/hodb.rb', line 69 def method_missing(sym, *args, &block) #puts "=======================================> #{sym.to_s}".red @odb.tableCursor = @tableCursor return @odb.send(sym, *args, &block) end |
Instance Attribute Details
#odb ⇒ Object (readonly)
Returns the value of attribute odb.
61 62 63 |
# File 'lib/hdb/hodb.rb', line 61 def odb @odb end |
#tableCursor ⇒ Object (readonly)
Returns the value of attribute tableCursor.
61 62 63 |
# File 'lib/hdb/hodb.rb', line 61 def tableCursor @tableCursor end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
61 62 63 |
# File 'lib/hdb/hodb.rb', line 61 def type @type end |