issues
search
gamache
/
hyperresource
A self-inflating Ruby client for hypermedia APIs. Not under active development.
http://hyperresource.com/doc
MIT License
304
stars
29
forks
source link
Refactoring round-up
#11
Closed
gamache
closed
11 years ago
gamache
commented
11 years ago
Got rid of init_from_hal methods and introduced the HR::Adapter interface, and HR::Adapter::HAL_JSON.
Ditched define_singleton_method in favor of proper subclass creation and method_missing fallback. Now HR objects are cacheable.
Cleaned up subclassing logic considerably.