Class: Microstation::DefaultModel
- Inherits:
-
Object
- Object
- Microstation::DefaultModel
- Includes:
- ModelTrait
- Defined in:
- lib/microstation/model.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#ole_obj ⇒ Object
readonly
Returns the value of attribute ole_obj.
Instance Method Summary collapse
- #drawing ⇒ Object
-
#initialize(app, ole) ⇒ DefaultModel
constructor
A new instance of DefaultModel.
Methods included from ModelTrait
#activate, #active?, #add_element, #change_text_suffix, #find_by_id, #get_matching_text, #get_selected_elements, #get_selected_text, #get_tagsets_in_model_hash, #get_tagsets_in_model_hash_old, #locked?, #name, #readonly?, #scan_model, #scan_tags_filtered, #select_element, #select_tagset_instances, #tags_to_hash, #to_s, #unselect_element
Methods included from ScanTrait
#cells_criteria, #create_scanner, #graphics_criteria, #lines_criteria, #scan, #scan_cell_with_name, #scan_cells, #scan_graphical, #scan_lines, #scan_tags, #scan_text, #tags_criteria, #text_criteria
Methods included from Graphics
Constructor Details
#initialize(app, ole) ⇒ DefaultModel
Returns a new instance of DefaultModel.
18 19 20 21 |
# File 'lib/microstation/model.rb', line 18 def initialize(app,ole) @app = app @ole_obj = ole end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
16 17 18 |
# File 'lib/microstation/model.rb', line 16 def app @app end |
#ole_obj ⇒ Object (readonly)
Returns the value of attribute ole_obj.
16 17 18 |
# File 'lib/microstation/model.rb', line 16 def ole_obj @ole_obj end |
Instance Method Details
#drawing ⇒ Object
23 24 25 |
# File 'lib/microstation/model.rb', line 23 def drawing @drawing ||= ::Microstation::Drawing.from_ole_obj(app,ole_obj) end |