# frozen_string_literal: true # Core SVG data for the membership level insignia. # # This class should never need to be called directly. # @private class USPSFlags class Grades class Membership class << self def get(type) <<~SVG #{arrow { send("#{type}_bar") }} #{send(type)} SVG end private def arrow <<~SVG #{yield} SVG end def senior_bar <<~SVG SVG end def life_bar <<~SVG SVG end def senior <<~SVG SVG end def life <<~SVG #{senior} #{laurel} SVG end def laurel <<~SVG SVG end end end end end