demandchain/galaxy-client — pull request #32 by azimux (2012-09-17 04:16:08+00:00)
Title: Partner resource extracted from Chameleon

This just extracts a Galaxy::Partner resource from Chameleon up into galaxy-client.

The config_hash method is because there is no clean way to return a resource with an attribute as a hash in ActiveResrouce. Instead it creates an object graph and automatically generates classes dynamically for any attribute name for which it can't find an existing class. This makes basic behavior like partner.config[:interface].has_key?(:web) too awkward to do correctly, thus the config_hash method.