module MicroMicro module Collections class ItemsCollection < BaseCollection # @return [Array Array}>] def to_a map(&:to_h) end # @return [Array] def types @types ||= map(&:types).flatten.uniq.sort end end end end