REST API vs. the Ruby API

Ok, looks as if placing my method in the api code and calling thought the client works:

response = client.set_group_user_note_lev(@group_name, user['id'], 2)
puts response

Though the response did not seem to print as it does in Postman, e.g.:

{
  "success": "OK"
}

It seems messy adding my code to the published Ruby API’s code. Best practices?