Class: LS4::FileUpdateLog::RecordRef
- Inherits:
-
Object
- Object
- LS4::FileUpdateLog::RecordRef
- Defined in:
- lib/ls4/service/ulog_file.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#reltime ⇒ Object
readonly
Returns the value of attribute reltime.
Class Method Summary collapse
Instance Method Summary collapse
- #<=>(o) ⇒ Object
-
#initialize(reltime, pos) ⇒ RecordRef
constructor
A new instance of RecordRef.
- #read_body(stream) ⇒ Object
Constructor Details
#initialize(reltime, pos) ⇒ RecordRef
Returns a new instance of RecordRef.
111 112 113 114 |
# File 'lib/ls4/service/ulog_file.rb', line 111 def initialize(reltime, pos) @reltime = reltime @pos = pos end |
Instance Attribute Details
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
117 118 119 |
# File 'lib/ls4/service/ulog_file.rb', line 117 def pos @pos end |
#reltime ⇒ Object (readonly)
Returns the value of attribute reltime.
116 117 118 |
# File 'lib/ls4/service/ulog_file.rb', line 116 def reltime @reltime end |
Class Method Details
.read(stream) ⇒ Object
128 129 130 131 132 |
# File 'lib/ls4/service/ulog_file.rb', line 128 def self.read(stream) pos = stream.pos reltime = Record.read_nodata(stream) new(reltime, pos) end |