Class: RubyConnman::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_connman/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_interfaceObject

Returns the value of attribute service_interface.



3
4
5
# File 'lib/ruby_connman/service.rb', line 3

def service_interface
  @service_interface
end