estately / rets

A pure-ruby library for fetching data from RETS servers
https://github.com/estately/rets
127 stars 94 forks source link

Clean up client constructor and how we use attr_reader/writer #126

Closed hfaulds closed 9 years ago

hfaulds commented 9 years ago

It's been bugging me that we have such a confusing constructor.

Some of it got moved to Rets::HttpClient

I tried to clean up where we refer to instance variables with attr_readers within the class (sometimes we would refer to them as self.foo,@foo or foo).

I removed the attr_writer and allowed those arguments to be passed into the constructor.

The only instance var I left that confuses me is @tries which appears to be some now-defunct code which I would be in favour of deleting.