Sha256: 8dc545cb8eeca97b91996a7e889b26f674ac5e013087326e7b782489b4bd5152

Contents?: true

Size: 280 Bytes

Versions: 13

Compression:

Stored size: 280 Bytes

Contents

module DataObjects
  class Result
    attr_accessor :insert_id, :affected_rows

    def initialize(command, affected_rows, insert_id = nil)
      @command, @affected_rows, @insert_id = command, affected_rows, insert_id
    end

    def to_i
      @affected_rows
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
data_objects-0.9.10.1 lib/data_objects/result.rb
data_objects-0.9.11 lib/data_objects/result.rb
data_objects-0.9.10 lib/data_objects/result.rb
data_objects-0.9.6 lib/data_objects/result.rb
data_objects-0.9.9 lib/data_objects/result.rb
data_objects-0.9.7 lib/data_objects/result.rb
data_objects-0.9.4 lib/data_objects/result.rb
data_objects-0.9.2 lib/data_objects/result.rb
data_objects-0.9.5 lib/data_objects/result.rb
data_objects-0.9.3 lib/data_objects/result.rb
data_objects-0.9.8 lib/data_objects/result.rb
mack-data_mapper-0.8.3 lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb
mack-data_mapper-0.8.3.1 lib/gems/data_objects-0.9.10.1/lib/data_objects/result.rb