Class: WinRM::PSRP::MessageData::SessionCapability

Inherits:
Base
  • Object
show all
Defined in:
lib/winrm/psrp/message_data/session_capability.rb

Overview

session capability message type

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from WinRM::PSRP::MessageData::Base

Instance Method Details

#protocol_versionObject



20
21
22
# File 'lib/winrm/psrp/message_data/session_capability.rb', line 20

def protocol_version
  clixml[:version].select { |v| v.attributes['N'] == 'protocolversion' }.first
end

#ps_versionObject



24
25
26
# File 'lib/winrm/psrp/message_data/session_capability.rb', line 24

def ps_version
  clixml[:version].select { |v| v.attributes['N'] == 'PSVersion' }.first
end

#serialization_versionObject



28
29
30
# File 'lib/winrm/psrp/message_data/session_capability.rb', line 28

def serialization_version
  clixml[:version].select { |v| v.attributes['N'] == 'SerializationVersion' }.first
end