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.



69
70
71
# File 'lib/duoconsole.rb', line 69

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



73
74
75
# File 'lib/duoconsole.rb', line 73

def method_missing(m, *args, &block)
  send m, args
end

Instance Attribute Details

#socketObject (readonly)

Returns the value of attribute socket.



67
68
69
# File 'lib/duoconsole.rb', line 67

def socket
  @socket
end