Class: Dtn::Messages::System::Timestamp
- Inherits:
-
Dtn::Message
- Object
- OpenStruct
- Dtn::Message
- Dtn::Messages::System::Timestamp
- Defined in:
- lib/dtn/messages/system/timestamp.rb
Overview
Parsed timestamp
Class Method Summary collapse
Methods inherited from Dtn::Message
Class Method Details
.parse(line:) ⇒ Object
9 10 11 |
# File 'lib/dtn/messages/system/timestamp.rb', line 9 def parse(line:, **) new timestamp: line[2..].to_datetime end |