method

fetch

rails latest stable - Class: ActiveRecord::Result::IndexedRow

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

fetch(column)
public

No documentation available.

# File activerecord/lib/active_record/result.rb, line 70
      def fetch(column)
        if index = @column_indexes[column]
          @row[index]
        elsif block_given?
          yield
        else
          raise KeyError, "key not found: #{column.inspect}"
        end
      end