Class: KalibroClient::Entities::Processor::HotspotMetricResult
- Inherits:
-
MetricResult
- Object
- Likeno::Entity
- Base
- Base
- MetricResult
- KalibroClient::Entities::Processor::HotspotMetricResult
- Defined in:
- lib/kalibro_client/entities/processor/hotspot_metric_result.rb
Instance Attribute Summary collapse
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#message ⇒ Object
Returns the value of attribute message.
Attributes inherited from MetricResult
#id, #metric_configuration, #metric_configuration_id, #module_result_id, #related_hotspot_metric_results_id, #value
Instance Method Summary collapse
-
#initialize(attributes = {}, persisted = false) ⇒ HotspotMetricResult
constructor
A new instance of HotspotMetricResult.
- #related_results ⇒ Object
Methods inherited from MetricResult
Methods inherited from Base
Methods inherited from Base
Constructor Details
#initialize(attributes = {}, persisted = false) ⇒ HotspotMetricResult
Returns a new instance of HotspotMetricResult.
24 25 26 27 28 29 30 31 32 |
# File 'lib/kalibro_client/entities/processor/hotspot_metric_result.rb', line 24 def initialize(attributes={}, persisted=false) @line_number = attributes["line_number"].to_i attributes.each do |field, value| if field != "line_number" and self.class.valid?(field) send("#{field}=", value) end end @persisted = persisted end |
Instance Attribute Details
#line_number ⇒ Object
Returns the value of attribute line_number.
22 23 24 |
# File 'lib/kalibro_client/entities/processor/hotspot_metric_result.rb', line 22 def line_number @line_number end |
#message ⇒ Object
Returns the value of attribute message.
22 23 24 |
# File 'lib/kalibro_client/entities/processor/hotspot_metric_result.rb', line 22 def @message end |
Instance Method Details
#related_results ⇒ Object
34 35 36 37 |
# File 'lib/kalibro_client/entities/processor/hotspot_metric_result.rb', line 34 def HotspotMetricResult.create_objects_array_from_hash(self.class.request(":id/related_results", {id: self.id}, :get)) end |