Class: TableRecord

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

Instance Method Summary collapse

Constructor Details

#initialize(wk, r, ri, c) ⇒ TableRecord

Returns a new instance of TableRecord.



74
75
76
# File 'lib/boundless_gdata.rb', line 74

def initialize(wk, r, ri, c)
  @record = r; @ri = ri; @wk = wk; @c_class = c
end

Instance Method Details

#[](k) ⇒ Object



78
79
80
# File 'lib/boundless_gdata.rb', line 78

def [](k)
  @record[k]
end

#[]=(k, val) ⇒ Object



82
83
84
# File 'lib/boundless_gdata.rb', line 82

def []=(k, val)
  @wk[@ri, @c_class.field_index(k)] = val
end

#saveObject



86
87
88
# File 'lib/boundless_gdata.rb', line 86

def save
  @wk.save
end