     }
   }
 
+  static let dateFormatter = NSDateFormatter()
   var id: Int?
   var uuid: String?
   var projectID: Int?

  var startedAt: NSDate?
  var finishedAt: NSDate?
  var codeshipLinkString: String?
//
//  let transformDate = TransformOf<NSDate, String>(fromJSON: { (value: String?) -> NSDate? in
//    let dateFormatter = NSDateFormatter();
//    dateFormatter.dateFormat = "YYYY-MM-dd'T'HH:mm:ss.SSSZ"
//
//    var date : String
//    if let dateString = value {
//      date = dateString
//    } else {
//      date = ""
//    }
//    return dateFormatter.dateFromString(date)
//
//    }, toJSON: { nil })

  // MARK: ObjectMapper - Mappable
  init(_ map: Map) { }

  func mapping(map: Map) {
    id <- map["id"]
    uuid <- map["uuid"]
    projectID <- map["project_id"]
    status <- map["status"]
    gitHubUsername <- map["github_username"]
    commitID <- map["commit_id"]
    message <- map["message"]
    branch <- map["branch"]
//    startedAt <- (map["started_at"], transformDate)
//    finishedAt <- (map["finished_at"], transformDate)
  }

//  init?(response: NSHTTPURLResponse, representation: AnyObject){

//    return builds
//  }

  private class func convertDateFromString(aString: String?) -> NSDate? {
    dateFormatter.dateFormat = "YYYY-MM-dd'T'HH:mm:ss.SSSZ"

    var date : String
    if let dateString = aString {
      date = dateString
    } else {
      date = ""
    }

    return dateFormatter.dateFromString(date)
  }
}