Class: Interlnk::Packet::ServerInfoAnswer
- Inherits:
-
Object
- Object
- Interlnk::Packet::ServerInfoAnswer
- Defined in:
- lib/interlnk/packet/serverinfo.rb
Instance Attribute Summary collapse
-
#developer ⇒ Object
Returns the value of attribute developer.
-
#device_server ⇒ Object
Returns the value of attribute device_server.
-
#last_client_id ⇒ Object
Returns the value of attribute last_client_id.
-
#max_ser_block ⇒ Object
Returns the value of attribute max_ser_block.
-
#os_type ⇒ Object
Returns the value of attribute os_type.
-
#product ⇒ Object
Returns the value of attribute product.
-
#server_id ⇒ Object
Returns the value of attribute server_id.
-
#version ⇒ Object
Returns the value of attribute version.
-
#want_supported ⇒ Object
Returns the value of attribute want_supported.
Instance Method Summary collapse
-
#initialize(data) ⇒ ServerInfoAnswer
constructor
A new instance of ServerInfoAnswer.
Constructor Details
#initialize(data) ⇒ ServerInfoAnswer
Returns a new instance of ServerInfoAnswer.
40 41 42 43 44 45 46 47 |
# File 'lib/interlnk/packet/serverinfo.rb', line 40 def initialize(data) ( @os_type, @developer, @product, version, @device_server, @checksum, @crc, @max_ser_block, reserved, @last_client_id, @server_id ) = data.unpack('vvvvCCCva12VV') @version = "#{(version & 0xFF00) >> 8}.#{version & 0xFF}" end |
Instance Attribute Details
#developer ⇒ Object
Returns the value of attribute developer.
35 36 37 |
# File 'lib/interlnk/packet/serverinfo.rb', line 35 def developer @developer end |
#device_server ⇒ Object
Returns the value of attribute device_server.
36 37 38 |
# File 'lib/interlnk/packet/serverinfo.rb', line 36 def device_server @device_server end |
#last_client_id ⇒ Object
Returns the value of attribute last_client_id.
38 39 40 |
# File 'lib/interlnk/packet/serverinfo.rb', line 38 def last_client_id @last_client_id end |
#max_ser_block ⇒ Object
Returns the value of attribute max_ser_block.
37 38 39 |
# File 'lib/interlnk/packet/serverinfo.rb', line 37 def max_ser_block @max_ser_block end |
#os_type ⇒ Object
Returns the value of attribute os_type.
35 36 37 |
# File 'lib/interlnk/packet/serverinfo.rb', line 35 def os_type @os_type end |
#product ⇒ Object
Returns the value of attribute product.
35 36 37 |
# File 'lib/interlnk/packet/serverinfo.rb', line 35 def product @product end |
#server_id ⇒ Object
Returns the value of attribute server_id.
38 39 40 |
# File 'lib/interlnk/packet/serverinfo.rb', line 38 def server_id @server_id end |
#version ⇒ Object
Returns the value of attribute version.
36 37 38 |
# File 'lib/interlnk/packet/serverinfo.rb', line 36 def version @version end |
#want_supported ⇒ Object
Returns the value of attribute want_supported.
37 38 39 |
# File 'lib/interlnk/packet/serverinfo.rb', line 37 def want_supported @want_supported end |