Class: RubyConnman::Bus
- Inherits:
-
Object
- Object
- RubyConnman::Bus
- Includes:
- Singleton
- Defined in:
- lib/ruby_connman/bus.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize ⇒ Bus
constructor
A new instance of Bus.
Constructor Details
#initialize ⇒ Bus
Returns a new instance of Bus.
6 7 8 |
# File 'lib/ruby_connman/bus.rb', line 6 def initialize @service = DBus::SystemBus.instance.service('net.connman') end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
4 5 6 |
# File 'lib/ruby_connman/bus.rb', line 4 def service @service end |