Class: SourceMonitor::Fetching::RetryOrchestrator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/source_monitor/fetching/retry_orchestrator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#decisionObject

Returns the value of attribute decision

Returns:

  • (Object)

    the current value of decision



12
13
14
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12

def decision
  @decision
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



12
13
14
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12

def error
  @error
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



12
13
14
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12

def source
  @source
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



12
13
14
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12

def status
  @status
end

Instance Method Details

#circuit_opened?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 17

def circuit_opened?
  status == :circuit_opened
end

#exhausted?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 21

def exhausted?
  status == :exhausted
end

#retry_enqueued?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 13

def retry_enqueued?
  status == :retry_enqueued
end