I am building a Rails app to access ShopifyAPI. How can I add a 'calculated' field on the returned object. e.g. In my controller, to get all orders, I am calling:
@orders = ShopifyAPI::Order.find(:all, :params => { :status => 'any'})
This works fine but I would like @orders to contain a new calculated field 'fullname' (concat of order.customer.firstname + order.customer.lastname)
Any ideas really appreciated :-) Thanks.