Class: Legion::Extensions::Node::Transport::Messages::PublicKey
- Inherits:
-
Transport::Message
- Object
- Transport::Message
- Legion::Extensions::Node::Transport::Messages::PublicKey
- Defined in:
- lib/legion/extensions/node/transport/messages/public_key.rb
Instance Method Summary collapse
Instance Method Details
#encrypt? ⇒ Boolean
11 12 13 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 11 def encrypt? false end |
#routing_key ⇒ Object
3 4 5 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 3 def routing_key 'node.crypt.update_public_key' end |
#type ⇒ Object
7 8 9 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 7 def type 'task' end |
#validate ⇒ Object
15 16 17 18 19 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 15 def validate raise 'public_key should be a string' unless @options[:public_key].is_a?(String) @valid = true end |