Method: NewRelic::Agent::Stats#hash_merge

Defined in:
lib/new_relic/agent/stats.rb

#hash_merge(hash) ⇒ Object


52
53
54
55
56
57
58
59
60
# File 'lib/new_relic/agent/stats.rb', line 52

def hash_merge(hash)
  @call_count = hash[:count] if hash[:count]
  @total_call_time = hash[:total] if hash[:total]
  @total_exclusive_time = hash[:total] if hash[:total]
  @min_call_time = hash[:min] if hash[:min]
  @max_call_time = hash[:max] if hash[:max]
  @sum_of_squares = hash[:sum_of_squares] if hash[:sum_of_squares]
  self
end