Class: Pili::Client
- Inherits:
-
Object
- Object
- Pili::Client
- Defined in:
- lib/pili/client.rb
Instance Attribute Summary collapse
-
#mac ⇒ Object
readonly
Returns the value of attribute mac.
-
#rpc ⇒ Object
readonly
Returns the value of attribute rpc.
Instance Method Summary collapse
-
#hub(hub_name) ⇒ Object
hub 初始化一个 Hub.
-
#initialize(mac) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(mac) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/pili/client.rb', line 7 def initialize(mac) @mac = mac @rpc = RPC.new mac end |
Instance Attribute Details
#mac ⇒ Object (readonly)
Returns the value of attribute mac.
5 6 7 |
# File 'lib/pili/client.rb', line 5 def mac @mac end |
#rpc ⇒ Object (readonly)
Returns the value of attribute rpc.
5 6 7 |
# File 'lib/pili/client.rb', line 5 def rpc @rpc end |