Class: Spinoza::InsertOperation
- Defined in:
- lib/spinoza/system/operation.rb
Instance Attribute Summary collapse
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Attributes inherited from Operation
Instance Method Summary collapse
- #check(lm) ⇒ Object
- #execute(ds) ⇒ Object
-
#initialize(txn = nil, table: nil, row: nil) ⇒ InsertOperation
constructor
A new instance of InsertOperation.
- #inspect ⇒ Object
Constructor Details
#initialize(txn = nil, table: nil, row: nil) ⇒ InsertOperation
Returns a new instance of InsertOperation.
26 27 28 29 |
# File 'lib/spinoza/system/operation.rb', line 26 def initialize txn = nil, table: nil, row: nil @txn = txn @table, @row = table, row end |
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
25 26 27 |
# File 'lib/spinoza/system/operation.rb', line 25 def row @row end |
Instance Method Details
#check(lm) ⇒ Object
35 36 37 |
# File 'lib/spinoza/system/operation.rb', line 35 def check lm true end |
#execute(ds) ⇒ Object
31 32 33 |
# File 'lib/spinoza/system/operation.rb', line 31 def execute ds ds << row end |
#inspect ⇒ Object
39 40 41 |
# File 'lib/spinoza/system/operation.rb', line 39 def inspect "<insert #{table}: #{row}>" end |