Class: ThemeCheck::ShopifyLiquid::SourceIndex::PropertyEntry
- 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
-
#parent_name ⇒ Object
readonly
Returns the value of attribute parent_name.
Attributes inherited from BaseEntry
Instance Method Summary collapse
-
#initialize(hash, parent_name) ⇒ PropertyEntry
constructor
A new instance of PropertyEntry.
- #shopify_dev_url ⇒ Object
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_name ⇒ Object (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_url ⇒ Object
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 |