Sha256: 3ffbc26a4e07790846958fc9777f29b0a691537d7eecf31bf97cbbcd01b342de
Contents?: true
Size: 786 Bytes
Versions: 9
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true module Extension module Models module ServerConfig class DevelopmentRenderer < Base include SmartProperties VALID_RENDERERS = [ "@shopify/admin-ui-extensions", "@shopify/post-purchase-ui-extensions", "@shopify/checkout-ui-extensions", ] property! :name, accepts: VALID_RENDERERS def self.find(type) case type.downcase when "admin_ui_extension" new(name: "@shopify/admin-ui-extensions") when "checkout_ui_extension" new(name: "@shopify/checkout-ui-extensions") when "checkout_post_purchase" new(name: "@shopify/post-purchase-ui-extensions") end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems