Class: EMDextras::Chains::PipeSetup

Inherits:
Struct
  • Object
show all
Defined in:
lib/em-dextras/chains.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#monitoringObject

Returns the value of attribute monitoring

Returns:

  • (Object)

    the current value of monitoring



79
80
81
# File 'lib/em-dextras/chains.rb', line 79

def monitoring
  @monitoring
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



79
80
81
# File 'lib/em-dextras/chains.rb', line 79

def options
  @options
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



79
80
81
# File 'lib/em-dextras/chains.rb', line 79

def result
  @result
end

Instance Method Details

#inform_exception!(error_value, stage) ⇒ Object



80
81
82
83
84
85
86
# File 'lib/em-dextras/chains.rb', line 80

def inform_exception!(error_value, stage)
  if options[:context]
    self.monitoring.inform_exception! error_value, stage, options[:context]
  else
    self.monitoring.inform_exception! error_value, stage
  end
end