Class: DataMetaPii::RegVo

Inherits:
VersionedVo show all
Defined in:
lib/dataMetaPii.rb

Overview

Registry Value Object - a wrap around the PII Key to attributes map

Instance Attribute Summary collapse

Attributes inherited from VersionedVo

#ver

Instance Method Summary collapse

Constructor Details

#initialize(ver, vos) ⇒ RegVo



180
181
182
183
# File 'lib/dataMetaPii.rb', line 180

def initialize(ver, vos)
    super(ver)
    @keyVos = vos
end

Instance Attribute Details

#keyVosObject

Returns the value of attribute keyVos.



179
180
181
# File 'lib/dataMetaPii.rb', line 179

def keyVos
  @keyVos
end

Instance Method Details

#to_tree_image(indent = '') ⇒ Object

Builds a textual tree image for logging and/or console output



186
187
188
189
# File 'lib/dataMetaPii.rb', line 186

def to_tree_image(indent = '')
    next_ident = indent + DataMetaPii::INDENT
    %<#{@keyVos.keys.map{|k| @keyVos[k].to_tree_image(next_ident)}.join("\n")}>
end