Class: Hiptest::Nodes::Folder
- Defined in:
- lib/hiptest-publisher/nodes.rb
Instance Attribute Summary collapse
-
#order_in_parent ⇒ Object
readonly
Returns the value of attribute order_in_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
- #folder ⇒ Object
-
#initialize(uid, parent_uid, name, description, tags = [], order_in_parent = 0) ⇒ Folder
constructor
A new instance of Folder.
- #root? ⇒ Boolean
Methods inherited from Node
#==, #each_direct_children, #each_sub_nodes, #kind, #pretty_print_instance_variables, #project, #render
Constructor Details
#initialize(uid, parent_uid, name, description, tags = [], order_in_parent = 0) ⇒ Folder
Returns a new instance of Folder.
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
# File 'lib/hiptest-publisher/nodes.rb', line 388 def initialize(uid, parent_uid, name, description, = [], order_in_parent = 0) super() @uid = uid @parent_uid = parent_uid @order_in_parent = order_in_parent @children = { :name => name, :description => description, :subfolders => [], :scenarios => [], :tags => } end |
Instance Attribute Details
#order_in_parent ⇒ Object (readonly)
Returns the value of attribute order_in_parent.
386 387 388 |
# File 'lib/hiptest-publisher/nodes.rb', line 386 def order_in_parent @order_in_parent end |
#parent_uid ⇒ Object (readonly)
Returns the value of attribute parent_uid.
386 387 388 |
# File 'lib/hiptest-publisher/nodes.rb', line 386 def parent_uid @parent_uid end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
386 387 388 |
# File 'lib/hiptest-publisher/nodes.rb', line 386 def uid @uid end |
Instance Method Details
#folder ⇒ Object
408 409 410 |
# File 'lib/hiptest-publisher/nodes.rb', line 408 def folder root? ? nil : parent end |
#root? ⇒ Boolean
404 405 406 |
# File 'lib/hiptest-publisher/nodes.rb', line 404 def root? parent_uid == nil end |