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
17 18 19 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 17 def encrypt? false end |
#routing_key ⇒ Object
9 10 11 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 9 def routing_key 'node.crypt.update_public_key' end |
#type ⇒ Object
13 14 15 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 13 def type 'task' end |
#validate ⇒ Object
21 22 23 24 25 |
# File 'lib/legion/extensions/node/transport/messages/public_key.rb', line 21 def validate raise 'public_key should be a string' unless @options[:public_key].is_a?(String) @valid = true end |