Class: KalibroClient::Entities::Processor::MetricResult

Inherits:
Base
  • Object
show all
Defined in:
lib/kalibro_client/entities/processor/metric_result.rb

Direct Known Subclasses

HotspotMetricResult, TreeMetricResult

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

address

Methods inherited from Base

#kalibro_errors, module_name

Instance Attribute Details

#idObject

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def id
  @id
end

#line_numberObject

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def line_number
  @line_number
end

#messageObject

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def message
  @message
end

#metric_configurationObject

Returns the value of attribute metric_configuration.



25
26
27
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 25

def metric_configuration
  @metric_configuration
end

#metric_configuration_idObject

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def metric_configuration_id
  @metric_configuration_id
end

#module_result_idObject

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def module_result_id
  @module_result_id
end

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def related_hotspot_metric_results_id
  @related_hotspot_metric_results_id
end

#valueObject

TODO: related_hotspot_metric_results_id should be enclosed to Processor which does not return this id into the response

there should be a controller that returns all the HotspotMetricResults associated through RelatedHotspotMetricResult


23
24
25
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 23

def value
  @value
end

Instance Method Details

#module_resultObject



53
54
55
56
57
58
# File 'lib/kalibro_client/entities/processor/metric_result.rb', line 53

def module_result
  return @module_result unless @module_result.nil? || @module_result_id != @module_result.id
  module_result_hash = KalibroClient::Entities::Processor::MetricResult
                       .request(':id/module_result', { id: self.id }, :get)['module_result']
  @module_result = KalibroClient::Entities::Processor::ModuleResult.new module_result_hash
end