Class | RBase::Record |
In: |
lib/rbase/record.rb
|
Parent: | Object |
Class that contains data for particular table row. Should not be created explicitly (use Table#create to create records)
You can read and assign values to row‘s columns using simple property syntax:
user = users_table[0] user.name = 'Bob' user.birth_date = Date.new(1980, 2, 29) user.save puts user.name puts user.birth_date
index | [R] | |
table | [R] |