Class: Dtn::Message
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Dtn::Message
show all
- Defined in:
- lib/dtn/message.rb
Overview
Direct Known Subclasses
Dtn::Messages::Catalog::Code, Dtn::Messages::MessageWithSimpleParser, Dtn::Messages::System::Error, Dtn::Messages::System::Generic, Dtn::Messages::System::Generic::AutoconnectOff, Dtn::Messages::System::Generic::AutoconnectOn, Dtn::Messages::System::Generic::Connected, Dtn::Messages::System::Generic::CurrentLoginid, Dtn::Messages::System::Generic::CurrentPassword, Dtn::Messages::System::Generic::CurrentProtocol, Dtn::Messages::System::Generic::Disconnected, Dtn::Messages::System::Generic::LoginInfoNotSaved, Dtn::Messages::System::Generic::LoginInfoSaved, Dtn::Messages::System::Generic::Obsolete, Dtn::Messages::System::Generic::ReconnectionFailed, Dtn::Messages::System::Generic::RegisterClientApp, Dtn::Messages::System::Generic::RemoveClientApp, Dtn::Messages::System::Generic::ReplacedPreviousWatch, Dtn::Messages::System::Generic::SymbolLimitReached, Dtn::Messages::System::Timestamp, Dtn::Messages::Unknown, ParseListFromMessage
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.callback_name ⇒ Object
11
12
13
|
# File 'lib/dtn/message.rb', line 11
def callback_name
@callback_name ||= name.demodulize.underscore
end
|
.parse(**options) ⇒ Object
7
8
9
|
# File 'lib/dtn/message.rb', line 7
def parse(**options)
new(options)
end
|
Instance Method Details
#callback_name ⇒ Object
16
17
18
|
# File 'lib/dtn/message.rb', line 16
def callback_name
self.class.callback_name
end
|