Class: Thirdeye::Window
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Class Method Summary collapse
Instance Method Summary collapse
- #focus ⇒ Object
- #id ⇒ Object
-
#initialize(node) ⇒ Window
constructor
A new instance of Window.
- #name ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node) ⇒ Window
22 23 24 |
# File 'lib/thirdeye/window.rb', line 22 def initialize(node) @data = node end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
20 21 22 |
# File 'lib/thirdeye/window.rb', line 20 def data @data end |
Class Method Details
.all ⇒ Object
4 5 6 |
# File 'lib/thirdeye/window.rb', line 4 def all self.collect_nodes i3.get_tree['nodes'] end |
Instance Method Details
#focus ⇒ Object
34 35 36 |
# File 'lib/thirdeye/window.rb', line 34 def focus i3.command "[con_id=#{window_id}] focus" end |
#id ⇒ Object
26 27 28 |
# File 'lib/thirdeye/window.rb', line 26 def id data['id'] end |
#name ⇒ Object
30 31 32 |
# File 'lib/thirdeye/window.rb', line 30 def name data['name'] end |