Class: Meshchat::Network::Incoming::MessageDecryptor
- Inherits:
-
Object
- Object
- Meshchat::Network::Incoming::MessageDecryptor
- Defined in:
- lib/meshchat/network/incoming/message_decryptor.rb
Instance Attribute Summary collapse
-
#_input ⇒ Object
readonly
Returns the value of attribute _input.
-
#_json ⇒ Object
readonly
Returns the value of attribute _json.
-
#_message ⇒ Object
readonly
Returns the value of attribute _message.
-
#_message_factory ⇒ Object
readonly
Returns the value of attribute _message_factory.
Instance Method Summary collapse
-
#initialize(encoded_message, message_factory) ⇒ MessageDecryptor
constructor
A new instance of MessageDecryptor.
- #message ⇒ Object
Constructor Details
#initialize(encoded_message, message_factory) ⇒ MessageDecryptor
Returns a new instance of MessageDecryptor.
9 10 11 12 13 14 |
# File 'lib/meshchat/network/incoming/message_decryptor.rb', line 9 def initialize(, ) = @_input = try_decrypt() @_json = parse_json(@_input) = process_json end |
Instance Attribute Details
#_input ⇒ Object (readonly)
Returns the value of attribute _input.
6 7 8 |
# File 'lib/meshchat/network/incoming/message_decryptor.rb', line 6 def _input @_input end |
#_json ⇒ Object (readonly)
Returns the value of attribute _json.
6 7 8 |
# File 'lib/meshchat/network/incoming/message_decryptor.rb', line 6 def _json @_json end |
#_message ⇒ Object (readonly)
Returns the value of attribute _message.
6 7 8 |
# File 'lib/meshchat/network/incoming/message_decryptor.rb', line 6 def end |
#_message_factory ⇒ Object (readonly)
Returns the value of attribute _message_factory.
7 8 9 |
# File 'lib/meshchat/network/incoming/message_decryptor.rb', line 7 def end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/meshchat/network/incoming/message_decryptor.rb', line 16 def end |