Class: QuitCommand

Inherits:
Struct
  • Object
show all
Defined in:
lib/drillmail/commands/quit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



1
2
3
# File 'lib/drillmail/commands/quit.rb', line 1

def body
  @body
end

#sessionObject

Returns the value of attribute session

Returns:

  • (Object)

    the current value of session



1
2
3
# File 'lib/drillmail/commands/quit.rb', line 1

def session
  @session
end

Instance Method Details

#callObject



2
3
4
5
# File 'lib/drillmail/commands/quit.rb', line 2

def call
  session.active = false
  session.reply(221, session.host)
end