Class: Legion::Transport::Messages::CheckSubtask

Inherits:
Legion::Transport::Message show all
Defined in:
lib/legion/transport/messages/check_subtask.rb

Instance Method Summary collapse

Methods inherited from Legion::Transport::Message

#content_encoding, #content_type, #encode_message, #encrypt?, #encrypt_message, #expiration, #headers, #initialize, #message, #priority, #publish, #timestamp, #type

Methods included from Common

#channel, #channel_open?, #close, #close!, #deep_merge, #generate_consumer_tag, #open_channel, #options_builder

Constructor Details

This class inherits a constructor from Legion::Transport::Message

Instance Method Details

#exchangeObject



7
8
9
# File 'lib/legion/transport/messages/check_subtask.rb', line 7

def exchange
  Legion::Transport::Exchanges::Task
end

#exchange_nameObject



11
12
13
# File 'lib/legion/transport/messages/check_subtask.rb', line 11

def exchange_name
  'Legion::Transport::Exchanges::Task'
end

#routing_keyObject



15
16
17
# File 'lib/legion/transport/messages/check_subtask.rb', line 15

def routing_key
  'task.subtask.check'
end

#validateObject



19
20
21
# File 'lib/legion/transport/messages/check_subtask.rb', line 19

def validate
  @valid = true
end