Class: Hiptest::Nodes::Folder

Inherits:
Node
  • Object
show all
Defined in:
lib/hiptest-publisher/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children

Instance Method Summary collapse

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

#parentObject

Returns the value of attribute parent.



308
309
310
# File 'lib/hiptest-publisher/nodes.rb', line 308

def parent
  @parent
end

#parent_uidObject (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

#uidObject (readonly)

Returns the value of attribute uid.



308
309
310
# File 'lib/hiptest-publisher/nodes.rb', line 308

def uid
  @uid
end