Move to ruby

I think we have those in the class already so there should be no need to pass them in function? Unless they're different, but in this case they should be named differently