Class: ThemeCheck::ShopifyLiquid::SourceIndex::TagEntry

Inherits:
BaseEntry
  • Object
show all
Defined in:
lib/theme_check/shopify_liquid/source_index/tag_entry.rb

Constant Summary

Constants inherited from BaseEntry

BaseEntry::SHOPIFY_DEV_ROOT_URL

Instance Attribute Summary

Attributes inherited from BaseEntry

#hash, #return_type

Instance Method Summary collapse

Methods inherited from BaseEntry

#deprecated?, #deprecation_reason, #description, #initialize, #name, #return_type_instance, #summary

Constructor Details

This class inherits a constructor from ThemeCheck::ShopifyLiquid::SourceIndex::BaseEntry

Instance Method Details

#parametersObject



7
8
9
10
# File 'lib/theme_check/shopify_liquid/source_index/tag_entry.rb', line 7

def parameters
  (hash['parameters'] || [])
    .map { |hash| ParameterEntry.new(hash) }
end

#return_type_hashObject



12
13
14
15
16
# File 'lib/theme_check/shopify_liquid/source_index/tag_entry.rb', line 12

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

#shopify_dev_urlObject



18
19
20
# File 'lib/theme_check/shopify_liquid/source_index/tag_entry.rb', line 18

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