Class: DataMetaPii::RegVo
- Inherits:
-
VersionedVo
- Object
- VersionedVo
- DataMetaPii::RegVo
- Defined in:
- lib/dataMetaPii.rb
Overview
Registry Value Object - a wrap around the PII Key to attributes map
Instance Attribute Summary collapse
-
#keyVos ⇒ Object
Returns the value of attribute keyVos.
Attributes inherited from VersionedVo
Instance Method Summary collapse
-
#initialize(ver, vos) ⇒ RegVo
constructor
A new instance of RegVo.
-
#to_tree_image(indent = '') ⇒ Object
Builds a textual tree image for logging and/or console output.
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
#keyVos ⇒ Object
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 |