Class: Hiptest::Nodes::Folder
- Defined in:
- lib/hiptest-publisher/nodes.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#parent_uid ⇒ Object
readonly
Returns the value of attribute parent_uid.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(uid, parent_uid, name) ⇒ Folder
constructor
A new instance of Folder.
Methods inherited from Node
#direct_children, #find_sub_nodes, #render
Constructor Details
#initialize(uid, parent_uid, name) ⇒ Folder
Returns a new instance of Folder.
311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/hiptest-publisher/nodes.rb', line 311 def initialize(uid, parent_uid, name) super() @uid = uid @parent_uid = parent_uid @children = { :name => name, :subfolders => [], :scenarios => [] } end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
308 309 310 |
# File 'lib/hiptest-publisher/nodes.rb', line 308 def parent @parent end |
#parent_uid ⇒ Object (readonly)
Returns the value of attribute parent_uid.
308 309 310 |
# File 'lib/hiptest-publisher/nodes.rb', line 308 def parent_uid @parent_uid end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
308 309 310 |
# File 'lib/hiptest-publisher/nodes.rb', line 308 def uid @uid end |