Sha256: 0fbcafd75e1019db7c1dbcd74457e27640bc7d64bbfa9e79aba5339f0f4b49c2

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module ShopifyLiquid
    class SourceIndex
      class PropertyEntry < BaseEntry
        attr_reader :parent_name

        def initialize(hash, parent_name)
          @hash = hash || {}
          @return_type = nil
          @parent_name = parent_name
        end

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