Skip to content

Instantly share code, notes, and snippets.

@imbriaco
Created September 8, 2011 14:40
Show Gist options
  • Save imbriaco/1203549 to your computer and use it in GitHub Desktop.
Save imbriaco/1203549 to your computer and use it in GitHub Desktop.
def process_metric(event)
metric_setter = "#{event[:metric]}="
send(metric_setter, event[:value]) if respond_to? metric_setter
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment