class GitHub::SQL::Rows

Internal: a list of arrays of values for insertion into SQL.

Attributes

values[R]

Public: the Array of row values

Public Class Methods

new(values) click to toggle source
# File lib/github/sql/rows.rb, line 8
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

Public Instance Methods

inspect() click to toggle source
# File lib/github/sql/rows.rb, line 15
def inspect
  "<#{self.class.name} #{values.inspect}>"
end