Class: DataObjects::Result

### Home Classes Methods

### In Files

- lib/data_objects/result.rb

### Parent

Object

### Methods

- ::new
- #to_i

### Class/Module Index

Quicksearch

- DataObjects
- DataObjects::Command
- DataObjects::Connection
- DataObjects::ConnectionError
- DataObjects::DataError
- DataObjects::Error
- DataObjects::Extension
- DataObjects::IntegrityError
- DataObjects::Logger
- DataObjects::Logging
- DataObjects::Pooling
- DataObjects::Pooling::InvalidResourceError
- DataObjects::Pooling::Pool
- DataObjects::Quoting
- DataObjects::Reader
- DataObjects::Result
- DataObjects::SQLError
- DataObjects::SavePoint
- DataObjects::Spec
- DataObjects::Spec::PendingHelpers
- DataObjects::SyntaxError
- DataObjects::Transaction
- DataObjects::TransactionError
- DataObjects::URI
- Extlib
- Extlib::ByteArray
- CustomTextType
- MyString
- Object
- SSLHelpers

No matching classes.

# DataObjects::Result

The Result class is returned from Connection#execute_non_query.

### Attributes

affected_rows[RW]

The number of rows affected by the Command

insert_id[RW]

The ID of a row inserted by the Command

### Public Class Methods

new(command, affected_rows, insert_id = nil) click to toggle source

Create a new Result. Used internally in the adapters.

    # File lib/data_objects/result.rb, line 10
    def initialize(command, affected_rows, insert_id = nil)
      @command, @affected_rows, @insert_id = command, affected_rows, insert_id
    end

### Public Instance Methods

to_i() click to toggle source

Return the number of affected rows

    # File lib/data_objects/result.rb, line 15
    def to_i
      @affected_rows
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.