Class: Duoconsole::CommandClient
- Inherits:
-
Object
- Object
- Duoconsole::CommandClient
- Defined in:
- lib/duoconsole.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(socket) ⇒ CommandClient
constructor
A new instance of CommandClient.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(socket) ⇒ CommandClient
Returns a new instance of CommandClient.
114 115 116 |
# File 'lib/duoconsole.rb', line 114 def initialize socket @socket = socket end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
118 119 120 |
# File 'lib/duoconsole.rb', line 118 def method_missing(m, *args, &block) send m, args end |
Instance Attribute Details
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
112 113 114 |
# File 'lib/duoconsole.rb', line 112 def socket @socket end |