Sha256: 30623a483d0ceb69c54759c30134425e8cdc7ae553e26ca8107ef73f7adb7d7d

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module ShopifyLiquid
    class SourceIndex
      class TagEntry < BaseEntry
        def parameters
          (hash['parameters'] || [])
            .map { |hash| ParameterEntry.new(hash) }
        end

        def return_type_hash
          {
            'type' => "tag<#{name}>",
          }
        end

        def shopify_dev_url
          "#{SHOPIFY_DEV_ROOT_URL}/tags/#{hash['name']}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/shopify_liquid/source_index/tag_entry.rb
theme-check-1.14.0 lib/theme_check/shopify_liquid/source_index/tag_entry.rb