Repository: airbrake/pybrake

Issue:
Change status_code -> statusCode

Discussion:

Patch:
diff --git a/pybrake/routes.py b/pybrake/routes.py
index 92a199d..045ff84 100755
--- a/pybrake/routes.py
+++ b/pybrake/routes.py
@@ -11,7 +11,7 @@ class RouteStat():
   __slots__ = [
     'method',
     'route',
-    'status_code',
+    'statusCode',
     'count',
     'sum',
     'sumsq',
@@ -30,7 +30,7 @@ class RouteStat():
   def __init__(self, method='', route='', status_code=0, time=None):
     self.method = method
     self.route = route
-    self.status_code = status_code
+    self.statusCode = status_code
     self.count = 0
     self.sum = 0
     self.sumsq = 0


Test patch:
diff --git a/pybrake/test_routes.py b/pybrake/test_routes.py
index d55aa48..eba4efc 100644
--- a/pybrake/test_routes.py
+++ b/pybrake/test_routes.py
@@ -35,7 +35,7 @@ def test_route_stat():
     assert route_stats == [{
       'method': 'GET',
       'route': 'ping',
-      'status_code': 200,
+      'statusCode': 200,
       'count': 1,
       'sum': 123,
       'sumsq': 15129,
@@ -44,7 +44,7 @@ def test_route_stat():
     }, {
       'method': 'GET',
       'route': 'pong',
-      'status_code': 200,
+      'statusCode': 200,
       'count': 2,
       'sum': 246,
       'sumsq': 30258,