Rename credential parameter of the build method: build(credential) ->
build(credentials).