Mew-Traveler / mew-api

1 stars 0 forks source link

Isolate HTTP and library code #3

Closed soumyaray closed 8 years ago

soumyaray commented 8 years ago

Need to move HTTP/json calls into a special class (airbnb_api.rb ?), and then use your other classes to simply call that api class. See our class notes about this.

Tailcloud commented 8 years ago

@soumyaray I might fix this issue, can you check it for us? THX 💯

soumyaray commented 8 years ago

That's exactly what I wanted! Now, if they URLs of the API for Airbnb changes, or they start returning something other than JSON, you only have to change that one file that talks to the API. I'll show even deeper examples of isolation in the coming class :)