Class: SessionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/session_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ SessionInfo

Returns a new instance of SessionInfo.



4
5
6
7
8
9
10
# File 'lib/session_info.rb', line 4

def initialize(data)
  @person = Person.new(data)

  length = BinData::Uint16le.read(data)
  LOGGER.debug "description length is #{length}"
  @description = BinData::String.new(:length => length).read(data)
end

Instance Attribute Details

#personObject (readonly)

Returns the value of attribute person.



2
3
4
# File 'lib/session_info.rb', line 2

def person
  @person
end