Sha256: 6032e81608782d5d2ba5ec40af9ca7a79c262c5b2f12343eb765b744a9dba7fd

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

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

        def input_type
          @input_type ||= hash['syntax'].split(' | ')[0]
        end

        def shopify_dev_url
          "#{SHOPIFY_DEV_ROOT_URL}/filters/#{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/filter_entry.rb
theme-check-1.14.0 lib/theme_check/shopify_liquid/source_index/filter_entry.rb