Class: Collavre::Orchestration::LoopBreaker::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/collavre/orchestration/loop_breaker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



24
25
26
# File 'app/services/collavre/orchestration/loop_breaker.rb', line 24

def details
  @details
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



24
25
26
# File 'app/services/collavre/orchestration/loop_breaker.rb', line 24

def reason
  @reason
end

#should_breakObject (readonly)

Returns the value of attribute should_break

Returns:

  • (Object)

    the current value of should_break



24
25
26
# File 'app/services/collavre/orchestration/loop_breaker.rb', line 24

def should_break
  @should_break
end

Instance Method Details

#safe?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'app/services/collavre/orchestration/loop_breaker.rb', line 29

def safe?
  !should_break
end

#should_break?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/services/collavre/orchestration/loop_breaker.rb', line 25

def should_break?
  should_break
end