Class: OLE_QA::Framework::OLELS::Ownership_Extent_Line
- Inherits:
-
Line_Object
- Object
- Common_Object
- Data_Object
- Line_Object
- Line_Object
- OLE_QA::Framework::OLELS::Ownership_Extent_Line
- Defined in:
- lib/olels/objects/ownership_extent_line.rb
Overview
An Extent of Ownership Line on the OLE Library System Instance Editor.
Instance Attribute Summary
Attributes inherited from Line_Object
Attributes inherited from Common_Object
Instance Method Summary collapse
- #create_ownership_note(which = 1) ⇒ Object (also: #add_ownership_note)
- #remove_ownership_note(which = 1) ⇒ Object (also: #delete_ownership_note)
- #set_elements ⇒ Object
- #set_sublines ⇒ Object
Methods inherited from Line_Object
#create_subline, #initialize, #remove_subline
Methods inherited from Line_Object
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
This class inherits a constructor from OLE_QA::Framework::OLELS::Line_Object
Instance Method Details
#create_ownership_note(which = 1) ⇒ Object Also known as: add_ownership_note
30 31 32 |
# File 'lib/olels/objects/ownership_extent_line.rb', line 30 def create_ownership_note(which = 1) create_subline("ownership_note_#{which}","Ownership_Note", which) end |
#remove_ownership_note(which = 1) ⇒ Object Also known as: delete_ownership_note
35 36 37 |
# File 'lib/olels/objects/ownership_extent_line.rb', line 35 def remove_ownership_note(which = 1) remove_subline("ownership_note_#{which}") end |
#set_elements ⇒ Object
19 20 21 22 23 24 |
# File 'lib/olels/objects/ownership_extent_line.rb', line 19 def set_elements element(:type_selector) {b.select_list(:id => "extentTextualHoldingsType_line#{@line_id}_control")} element(:statement_field) {b.text_field(:id => "extentTextualHoldings_line#{@line_id}_control")} element(:add_button) {b.(:id => "extentOfOwnership_addTagButton_line#{@line_id}")} element(:remove_button) {b.(:id => "extentOfOwnership_removeTagButton_line#{@line_id}")} end |
#set_sublines ⇒ Object
26 27 28 |
# File 'lib/olels/objects/ownership_extent_line.rb', line 26 def set_sublines create_ownership_note(1) end |