Is it possible to extend an ActiveResource class unmarshalled from a response?
Example of ActiveResource request:
GET http://www.exampleservice.com/products.json
Response
[{name:'Product X', price:14.5, features:[{name:'Soft'}, {name:'Green'}, {name:'Heavy'}]}]
This response would be unmarshalled to a Product
object with an array of Product::Feature
objects. Is it possible to add some custom method/attributes to this Product::Feature
class?