Class: RSMP::StatusResponseMatcher

Inherits:
StatusUpdateOrResponseMatcher show all
Defined in:
lib/rsmp/collect/message_matchers.rb

Overview

Class for waiting for specific status responses

Instance Attribute Summary

Attributes inherited from Matcher

#queries

Attributes inherited from Collector

#condition, #error, #messages, #status

Instance Method Summary collapse

Methods inherited from StatusUpdateOrResponseMatcher

#build_query, #get_items

Methods inherited from Matcher

#build_query, #done?, #messages, #perform_match, #progress, #query_result, #query_status, #reached, #summary

Methods inherited from Collector

#cancel, #collect, #collect!, #complete, #describe_progress, #do_stop, #done?, #ingoing?, #inspect, #keep, #notify, #notify_disconnect, #notify_error, #notify_schema_error, #outgoing?, #perform_match, #reject_not_ack, #reset, #start, #type_match?, #wait, #wait!

Methods inherited from Listener

#change_notifier, #listen, #notify, #notify_error

Methods included from Inspect

#inspect, #inspector

Constructor Details

#initialize(proxy, want, options = {}) ⇒ StatusResponseMatcher

Returns a new instance of StatusResponseMatcher.



39
40
41
42
43
44
# File 'lib/rsmp/collect/message_matchers.rb', line 39

def initialize proxy, want, options={}
  super proxy, want, options.merge(
    type: ['StatusResponse','MessageNotAck'],
    title: 'status response'
  )
end