Class: Switchboard::Component
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
Attributes inherited from Core
Instance Method Summary collapse
-
#initialize(settings = Switchboard::Settings.new, spin = true) ⇒ Component
constructor
A new instance of Component.
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
#component ⇒ Object (readonly)
Returns the value of attribute component.
3 4 5 |
# File 'lib/switchboard/component.rb', line 3 def component @component end |