Class: Greedo::GridHelper::Grid::Row

Inherits:
Struct
  • Object
show all
Defined in:
lib/greedo/grid_helper.rb

Instance Method Summary collapse

Instance Method Details

#columnsObject



101
102
103
# File 'lib/greedo/grid_helper.rb', line 101

def columns
  fields.map{ |f| Column.new(f.value(record), f.klass) }
end

#idObject



97
98
99
# File 'lib/greedo/grid_helper.rb', line 97

def id
  row_id.call(record)
end