Module: Axiom::Algebra::Projection::Methods
- Defined in:
- lib/axiom/algebra/projection.rb
Instance Method Summary collapse
-
#project(attributes) ⇒ Projection
Return a relation with only the attributes specified.
-
#remove(attributes) ⇒ Projection
Return a relation with attributes not specified.
Instance Method Details
#project(attributes) ⇒ Projection
Return a relation with only the attributes specified
169 170 171 |
# File 'lib/axiom/algebra/projection.rb', line 169 def project(attributes) Projection.new(self, attributes) end |
#remove(attributes) ⇒ Projection
Return a relation with attributes not specified
184 185 186 |
# File 'lib/axiom/algebra/projection.rb', line 184 def remove(attributes) project(header - attributes) end |