Module: RSMP::Collector::Status
- Included in:
- RSMP::Collector
- Defined in:
- lib/rsmp/collect/collector/status.rb
Overview
Status predicate methods for collectors
Instance Method Summary collapse
- #cancelled? ⇒ Boolean
- #collecting? ⇒ Boolean
- #ingoing? ⇒ Boolean
- #ok? ⇒ Boolean
- #outgoing? ⇒ Boolean
- #ready? ⇒ Boolean
- #timeout? ⇒ Boolean
Instance Method Details
#cancelled? ⇒ Boolean
21 22 23 |
# File 'lib/rsmp/collect/collector/status.rb', line 21 def cancelled? @status == :cancelled end |
#collecting? ⇒ Boolean
5 6 7 |
# File 'lib/rsmp/collect/collector/status.rb', line 5 def collecting? @status == :collecting end |
#ingoing? ⇒ Boolean
25 26 27 |
# File 'lib/rsmp/collect/collector/status.rb', line 25 def ingoing? @ingoing == true end |
#ok? ⇒ Boolean
9 10 11 |
# File 'lib/rsmp/collect/collector/status.rb', line 9 def ok? @status == :ok end |
#outgoing? ⇒ Boolean
29 30 31 |
# File 'lib/rsmp/collect/collector/status.rb', line 29 def outgoing? @outgoing == true end |
#ready? ⇒ Boolean
17 18 19 |
# File 'lib/rsmp/collect/collector/status.rb', line 17 def ready? @status == :ready end |
#timeout? ⇒ Boolean
13 14 15 |
# File 'lib/rsmp/collect/collector/status.rb', line 13 def timeout? @status == :timeout end |