class Realize::Collection::Last

Transformer to get the last item of a collection

Public Instance Methods

transform(resolver, value, time, record) click to toggle source
# File lib/realize/collection/last.rb, line 16
def transform(resolver, value, time, record)
  AtIndex.new(index: -1).transform(resolver, value, time, record)
end