Class: HRecordPtr

Inherits:
Object
  • Object
show all
Defined in:
lib/hdb/hodb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#odbObject (readonly)

Returns the value of attribute odb.



61
62
63
# File 'lib/hdb/hodb.rb', line 61

def odb
  @odb
end

#tableCursorObject (readonly)

Returns the value of attribute tableCursor.



61
62
63
# File 'lib/hdb/hodb.rb', line 61

def tableCursor
  @tableCursor
end

#typeObject (readonly)

Returns the value of attribute type.



61
62
63
# File 'lib/hdb/hodb.rb', line 61

def type
  @type
end