Class: ThemeCheck::ShopifyLiquid::SourceIndex::PropertyEntry

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

Constant Summary

Constants inherited from BaseEntry

BaseEntry::SHOPIFY_DEV_ROOT_URL

Instance Attribute Summary collapse

Attributes inherited from BaseEntry

#hash, #return_type

Instance Method Summary collapse

Methods inherited from BaseEntry

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

Constructor Details

#initialize(hash, parent_name) ⇒ PropertyEntry

Returns a new instance of PropertyEntry.



9
10
11
12
13
# File 'lib/theme_check/shopify_liquid/source_index/property_entry.rb', line 9

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

Instance Attribute Details

#parent_nameObject (readonly)

Returns the value of attribute parent_name.



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

def parent_name
  @parent_name
end

Instance Method Details

#shopify_dev_urlObject



15
16
17
# File 'lib/theme_check/shopify_liquid/source_index/property_entry.rb', line 15

def shopify_dev_url
  "#{SHOPIFY_DEV_ROOT_URL}/objects/#{parent_name}##{parent_name}-#{hash['name']}"
end