Module: Axiom::Algebra::Rename::Methods

Defined in:
lib/axiom/algebra/rename.rb

Instance Method Summary collapse

Instance Method Details

#rename(aliases) ⇒ Rename

Return a relation with the header renamed

Examples:

rename = relation.rename(a: :b, c: :d)

Parameters:

  • aliases (Hash, Aliases)

    the old and new attribute names

Returns:



105
106
107
# File 'lib/axiom/algebra/rename.rb', line 105

def rename(aliases)
  Rename.new(self, aliases)
end