I'd say choose what works best for you since it's only code that lives in the integration itself. I wasn't sure if Ruby requires a method or whether it can access fields directly. You'll know best, I am sure of it :)