Class: SessionInfo
- Inherits:
-
Object
- Object
- SessionInfo
- Defined in:
- lib/session_info.rb
Instance Attribute Summary collapse
-
#person ⇒ Object
readonly
Returns the value of attribute person.
Instance Method Summary collapse
-
#initialize(data) ⇒ SessionInfo
constructor
A new instance of SessionInfo.
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
#person ⇒ Object (readonly)
Returns the value of attribute person.
2 3 4 |
# File 'lib/session_info.rb', line 2 def person @person end |