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