class Pili::Client

Attributes

mac[R]
rpc[R]

Public Class Methods

new(mac) click to toggle source
# File lib/pili/client.rb, line 7
def initialize(mac)
  @mac = mac
  @rpc = RPC.new mac
end

Public Instance Methods

hub(hub_name) click to toggle source

hub 初始化一个 Hub.

# File lib/pili/client.rb, line 13
def hub(hub_name)
  Hub.new hub_name, self
end