Class: Switchboard::Component

Inherits:
Core
  • Object
show all
Defined in:
lib/switchboard/component.rb

Instance Attribute Summary collapse

Attributes inherited from Core

#jacks, #settings

Instance Method Summary collapse

Methods inherited from Core

#defer, hook, #hook, #plug!, #ready?, #run!

Constructor Details

#initialize(settings = Switchboard::Settings.new, spin = true) ⇒ Component

Returns a new instance of Component.



5
6
7
8
9
# File 'lib/switchboard/component.rb', line 5

def initialize(settings = Switchboard::Settings.new, spin = true)
  super(settings, spin)

  @component = Jabber::Component.new(settings["component.domain"])
end

Instance Attribute Details

#componentObject (readonly)

Returns the value of attribute component.



3
4
5
# File 'lib/switchboard/component.rb', line 3

def component
  @component
end