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

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/rsmp/collect/collector/status.rb', line 21

def cancelled?
  @status == :cancelled
end

#collecting?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/rsmp/collect/collector/status.rb', line 5

def collecting?
  @status == :collecting
end

#ingoing?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/rsmp/collect/collector/status.rb', line 25

def ingoing?
  @ingoing == true
end

#ok?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rsmp/collect/collector/status.rb', line 9

def ok?
  @status == :ok
end

#outgoing?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/rsmp/collect/collector/status.rb', line 29

def outgoing?
  @outgoing == true
end

#ready?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/rsmp/collect/collector/status.rb', line 17

def ready?
  @status == :ready
end

#timeout?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/rsmp/collect/collector/status.rb', line 13

def timeout?
  @status == :timeout
end