Class: Rose::Attribute::Pivot

Inherits:
Indirect show all
Defined in:
lib/rose/attribute.rb

Overview

This is a value object for pivot parameters

Instance Attribute Summary

Attributes inherited from Indirect

#value_block

Attributes inherited from Rose::Attribute

#column_name, #method_name

Instance Method Summary collapse

Methods inherited from Indirect

#evaluate, #initialize

Methods inherited from Rose::Attribute

#initialize

Constructor Details

This class inherits a constructor from Rose::Attribute::Indirect

Instance Method Details

#on(table) ⇒ Object



44
45
46
# File 'lib/rose/attribute.rb', line 44

def on(table)
  table.pivot(pivot_column, :group_by => group_column, :values => value_block)
end