Class: RSMP::StatusUpdateOrResponseMatcher
- Defined in:
- lib/rsmp/collect/message_matchers.rb
Overview
Base class for waiting for status updates or responses
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Matcher
Attributes inherited from Collector
#condition, #error, #messages, #status
Instance Method Summary collapse
- #build_query(want) ⇒ Object
-
#get_items(message) ⇒ Object
Get items, in our case status values.
-
#initialize(proxy, want, options = {}) ⇒ StatusUpdateOrResponseMatcher
constructor
A new instance of StatusUpdateOrResponseMatcher.
Methods inherited from Matcher
#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
Constructor Details
#initialize(proxy, want, options = {}) ⇒ StatusUpdateOrResponseMatcher
Returns a new instance of StatusUpdateOrResponseMatcher.
23 24 25 |
# File 'lib/rsmp/collect/message_matchers.rb', line 23 def initialize proxy, want, ={} super proxy, want, .merge end |
Instance Method Details
#build_query(want) ⇒ Object
27 28 29 |
# File 'lib/rsmp/collect/message_matchers.rb', line 27 def build_query want StatusQuery.new want end |
#get_items(message) ⇒ Object
Get items, in our case status values
32 33 34 |
# File 'lib/rsmp/collect/message_matchers.rb', line 32 def get_items .attributes['sS'] end |