Class: ThemeCheck::ShopifyLiquid::SourceIndex::FilterEntry
- Defined in:
- lib/theme_check/shopify_liquid/source_index/filter_entry.rb
Constant Summary
Constants inherited from BaseEntry
BaseEntry::SHOPIFY_DEV_ROOT_URL
Instance Attribute Summary
Attributes inherited from BaseEntry
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
#input_type ⇒ Object
12 13 14 |
# File 'lib/theme_check/shopify_liquid/source_index/filter_entry.rb', line 12 def input_type @input_type ||= hash['syntax'].split(' | ')[0] end |
#parameters ⇒ Object
7 8 9 10 |
# File 'lib/theme_check/shopify_liquid/source_index/filter_entry.rb', line 7 def parameters (hash['parameters'] || []) .map { |hash| ParameterEntry.new(hash) } end |
#shopify_dev_url ⇒ Object
16 17 18 |
# File 'lib/theme_check/shopify_liquid/source_index/filter_entry.rb', line 16 def shopify_dev_url "#{SHOPIFY_DEV_ROOT_URL}/filters/#{hash['name']}" end |