Ruby on rails Xero integration with Xeroizer

I am integrating with Xero with rubies on rails with a Xeroizer gemstone and I cannot figure out how to create parameters for my tracking category from rails.

I added a tracking category named Branches from the Xero web interface, now I need to add a parameter to the tracking category every time I add a branch to my application.

client = Xeroizer::PrivateApplication.new("the_key", "the_secret",the_path)
option = client.Option.build()
option.tracking_category = client.TrackingCategory.find(the_category_id)
option.name = 'Test'
option.save

can someone help me?

+4
source share

All Articles