class KalibroClient::Entities::Processor::MetricResult

Attributes

id[RW]

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
line_number[RW]

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
message[RW]

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
metric_configuration[R]
metric_configuration_id[RW]

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
module_result_id[RW]

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
value[RW]

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

Public Instance Methods

id=(value) click to toggle source
# File lib/kalibro_client/entities/processor/metric_result.rb, line 27
def id=(value)
  @id = value.to_i
end
metric_configuration=(value) click to toggle source
# File lib/kalibro_client/entities/processor/metric_result.rb, line 44
def metric_configuration=(value)
  @metric_configuration = KalibroClient::Entities::Configurations::MetricConfiguration.to_object value
  @metric_configuration_id = (@metric_configuration.nil? ? nil : @metric_configuration.id)
end
metric_configuration_id=(value) click to toggle source
# File lib/kalibro_client/entities/processor/metric_result.rb, line 40
def metric_configuration_id=(value)
  @metric_configuration_id = (value.nil? ? nil : value.to_i)
end
module_result() click to toggle source
# 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
value=(value) click to toggle source
# File lib/kalibro_client/entities/processor/metric_result.rb, line 49
def value=(value)
  @value = value.to_f
end