Class: DataObjects::Result
- Defined in:
- lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb
Instance Attribute Summary collapse
-
#affected_rows ⇒ Object
Returns the value of attribute affected_rows.
-
#insert_id ⇒ Object
Returns the value of attribute insert_id.
Instance Method Summary collapse
-
#initialize(command, affected_rows, insert_id = nil) ⇒ Result
constructor
A new instance of Result.
- #to_i ⇒ Object
Constructor Details
#initialize(command, affected_rows, insert_id = nil) ⇒ Result
Returns a new instance of Result.
5 6 7 |
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb', line 5 def initialize(command, affected_rows, insert_id = nil) @command, @affected_rows, @insert_id = command, affected_rows, insert_id end |
Instance Attribute Details
#affected_rows ⇒ Object
Returns the value of attribute affected_rows.
3 4 5 |
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb', line 3 def affected_rows @affected_rows end |
#insert_id ⇒ Object
Returns the value of attribute insert_id.
3 4 5 |
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb', line 3 def insert_id @insert_id end |
Instance Method Details
#to_i ⇒ Object
9 10 11 |
# File 'lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb', line 9 def to_i @affected_rows end |