Class: EventMachine::Ssh::ServerVersion

Inherits:
Object
  • Object
show all
Includes:
Log
Defined in:
lib/em-ssh/server-version.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Log

#debug, #error, #fatal, #info, #log, #warn

Constructor Details

#initialize(connection) ⇒ ServerVersion

Returns a new instance of ServerVersion.



9
10
11
12
# File 'lib/em-ssh/server-version.rb', line 9

def initialize(connection)
  debug("#{self}.new(#{connection})")
  negotiate!(connection)
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



6
7
8
# File 'lib/em-ssh/server-version.rb', line 6

def header
  @header
end

#versionObject (readonly)

Returns the value of attribute version.



7
8
9
# File 'lib/em-ssh/server-version.rb', line 7

def version
  @version
end