Class: Thirdeye::Output

Inherits:
Base
  • Object
show all
Defined in:
lib/thirdeye/output.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

i3, #i3

Constructor Details

#initialize(name) ⇒ Output

Returns a new instance of Output.



13
14
15
# File 'lib/thirdeye/output.rb', line 13

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/thirdeye/output.rb', line 11

def name
  @name
end

Class Method Details

.allObject



4
5
6
7
8
# File 'lib/thirdeye/output.rb', line 4

def all
  i3.get_outputs.collect do |op|
    self.new op['name']
  end
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/thirdeye/output.rb', line 17

def active?
  data['active']
end

#current_workspaceObject



25
26
27
# File 'lib/thirdeye/output.rb', line 25

def current_workspace
  data['current_workspace']
end

#primary?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/thirdeye/output.rb', line 21

def primary?
  data['primary']
end