Class: PlatformosCheck::PlatformosLiquid::SourceIndex::PropertyEntry

Inherits:
BaseEntry
  • Object
show all
Defined in:
lib/platformos_check/platformos_liquid/source_index/property_entry.rb

Constant Summary

Constants inherited from BaseEntry

BaseEntry::PLATFORMOS_DOCUMENTATION_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/platformos_check/platformos_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/platformos_check/platformos_liquid/source_index/property_entry.rb', line 7

def parent_name
  @parent_name
end

Instance Method Details

#platformos_documentation_urlObject



15
16
17
# File 'lib/platformos_check/platformos_liquid/source_index/property_entry.rb', line 15

def platformos_documentation_url
  "#{PLATFORMOS_DOCUMENTATION_URL}/developer-guide/variables/context-variable##{@parent_name}"
end