Sha256: 4b5629c1182cc3c6c676f9a7aa8ce747ff5498b92cf4aee8c49e671d8dddaca7

Contents?: true

Size: 493 Bytes

Versions: 10

Compression:

Stored size: 493 Bytes

Contents

module GitHub
  class SQL
    # Internal: a list of arrays of values for insertion into SQL.
    class Rows
      # Public: the Array of row values
      attr_reader :values

      def initialize(values)
        unless values.all? { |v| v.is_a? Array }
          raise ArgumentError, "cannot instantiate SQL rows with anything but arrays"
        end
        @values = values.dup.freeze
      end

      def inspect
        "<#{self.class.name} #{values.inspect}>"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
github-ds-0.5.4 lib/github/sql/rows.rb
github-ds-0.5.3 lib/github/sql/rows.rb
github-ds-0.5.2 lib/github/sql/rows.rb
github-ds-0.5.0 lib/github/sql/rows.rb
github-ds-0.4.0 lib/github/sql/rows.rb
github-ds-0.3.0 lib/github/sql/rows.rb
github-ds-0.2.11 lib/github/sql/rows.rb
github-ds-0.2.10 lib/github/sql/rows.rb
github-ds-0.2.9 lib/github/sql/rows.rb
github-ds-0.2.8 lib/github/sql/rows.rb