Class: DohDb::CustomSmartRow

Inherits:
AbstractSmartRow show all
Defined in:
lib/doh/mysql/smart_row.rb

Instance Attribute Summary

Attributes inherited from AbstractSmartRow

#changed_keys, #table

Attributes inherited from AbstractRow

#keys, #values

Instance Method Summary collapse

Methods inherited from AbstractSmartRow

#clear_changed_keys, #db_insert, #db_update, #delete, #display, #initialize_copy, #merge!, #method_missing, #record_id=, #set

Methods inherited from AbstractRow

#at, #each_pair, #empty_field?, #get, #inspect, #key?, #record_id, #size, #to_a, #to_h

Constructor Details

#initialize(*args) ⇒ CustomSmartRow

Returns a new instance of CustomSmartRow.



150
151
152
153
# File 'lib/doh/mysql/smart_row.rb', line 150

def initialize(*args)
  super(*parse_initialize_args(*args))
  @table = self.class.default_table
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class DohDb::AbstractSmartRow