module Axiom::Relation::Operation::Wrap::Methods
Public Instance Methods
wrap(wrapping)
click to toggle source
Return a wrapped relation
@example
wrapped = relation.wrap(location: [:latitude, :longitude])
@param [Hash{#to_sym => Enumerable<Axiom::Attribute>] wrapping
@return [Wrap]
@api public
# File lib/axiom/relation/operation/wrap.rb, line 72 def wrap(wrapping) wrapping.reduce(self) do |operation, pair| Wrap.new(operation, *pair) end end