Class: OLE_QA::Framework::Subline_Object

Inherits:
Line_Object show all
Defined in:
lib/common/subline_object.rb

Overview

A Data Object in OLE that represents a line nested under another line.

  • A subline object can be recursed under another subline object, use of the “@parent_line” instance variable should allow for continued recursion ad nauseam.

Instance Attribute Summary collapse

Attributes inherited from Line_Object

#line_number, #sublines

Attributes inherited from Common_Object

#elements, #functions, #ole

Instance Method Summary collapse

Methods inherited from Line_Object

#line_id, #set_subline

Methods inherited from Common_Object

#set_elements, #set_functions

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

#initialize(ole_session, parent_line, line_number = 1) ⇒ Subline_Object

Returns a new instance of Subline_Object.

Parameters:

  • ole_session (Object)

    The OLE_QA::Framework::Session session to pass to the Data Object.

  • line_number (Fixnum) (defaults to: 1)

    The line number this subline object will use for element definitions.



26
27
28
29
# File 'lib/common/subline_object.rb', line 26

def initialize(ole_session, parent_line, line_number = 1)
  @parent_line = parent_line
  super(ole_session, line_number)
end

Instance Attribute Details

#parent_lineObject (readonly)

The line under which this subline object was created.



22
23
24
# File 'lib/common/subline_object.rb', line 22

def parent_line
  @parent_line
end