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