Class: Duoconsole::CommandClient

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#socketObject (readonly)

Returns the value of attribute socket.



112
113
114
# File 'lib/duoconsole.rb', line 112

def socket
  @socket
end