Sha256: 5d01df45b353930e73593c50f8d01c429881863cdd0717c140c661fd56b36fbe

Contents?: true

Size: 275 Bytes

Versions: 17

Compression:

Stored size: 275 Bytes

Contents

module Adhoq
  class Result
    attr_reader :header, :rows

    def initialize(header, rows = [])
      @header = header
      @rows   = rows
    end

    def <<(row)
      rows << row
    end

    def ==(obj)
      header == obj.header && rows == obj.rows
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
adhoq-1.0.2 lib/adhoq/result.rb
adhoq-1.0.1 lib/adhoq/result.rb
adhoq-1.0.0 lib/adhoq/result.rb
adhoq-0.5.0 lib/adhoq/result.rb
adhoq-0.5.0.beta1 lib/adhoq/result.rb
adhoq-0.4.0 lib/adhoq/result.rb
adhoq-0.3.0 lib/adhoq/result.rb
adhoq-0.2.0 lib/adhoq/result.rb
adhoq-0.1.2 lib/adhoq/result.rb
adhoq-0.1.1 lib/adhoq/result.rb
adhoq-0.1.0 lib/adhoq/result.rb
adhoq-0.0.7 lib/adhoq/result.rb
adhoq-0.0.6 lib/adhoq/result.rb
adhoq-0.0.5 lib/adhoq/result.rb
adhoq-0.0.4 lib/adhoq/result.rb
adhoq-0.0.3 lib/adhoq/result.rb
adhoq-0.0.2 lib/adhoq/result.rb