Class: EventMachine::IMAP::Command

Inherits:
Listener
  • Object
show all
Defined in:
lib/em-imap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Listener

#stop, #stopped?

Methods included from ListeningDeferrable

#listen, #receive_event, #stop, #stopback, #transform

Constructor Details

#initialize(tag, cmd, args = [], &block) ⇒ Command

Returns a new instance of Command.



38
39
40
41
42
43
# File 'lib/em-imap.rb', line 38

def initialize(tag, cmd, args=[], &block)
  super(&block)
  self.tag = tag
  self.cmd = cmd
  self.args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



37
38
39
# File 'lib/em-imap.rb', line 37

def args
  @args
end

#cmdObject

Returns the value of attribute cmd.



37
38
39
# File 'lib/em-imap.rb', line 37

def cmd
  @cmd
end

#tagObject

Returns the value of attribute tag.



37
38
39
# File 'lib/em-imap.rb', line 37

def tag
  @tag
end