Class: DohDb::SmartRow

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) ⇒ SmartRow

Returns a new instance of SmartRow.



140
141
142
143
144
145
146
# File 'lib/doh/mysql/smart_row.rb', line 140

def initialize(*args)
  parsed_args = parse_initialize_args(*args)
  if parsed_args.size == 3
    @table = parsed_args.pop
  end
  super(*parsed_args)
end

Dynamic Method Handling

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