class PIM::Services::ItemService::ItemHierarchyElement
Public Instance Methods
get_ancestor_primary_keys()
click to toggle source
# File services.rb, line 2805 def get_ancestor_primary_keys ancestor_primary_keys = Set.new root_paths = self.root_paths || [] root_paths.each do |root_path| root_path.each do |ancestor_primary_key| ancestor_primary_keys << ancestor_primary_key unless ancestor_primary_key == self.primary_key end end ancestor_primary_keys end
get_child_relation_value(child_primary_key, relation_attribute)
click to toggle source
# File services.rb, line 2824 def get_child_relation_value child_primary_key, relation_attribute return PIM.get_value(get_child_relation_values(child_primary_key), relation_attribute) end
get_child_relation_values(child_primary_key)
click to toggle source
# File services.rb, line 2820 def get_child_relation_values child_primary_key return PIM.get_value(child_relation_values, child_primary_key) || {} end