A collection of patterns for Integrating with external API's in Ruby
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
basic_slack.rb
slack.rb
slack_api.rb
slack_api_fake.rb
slack_service.rb

README.md

The AIRLOCK api integration

Slide deck: http://slides.com/alxjrvs/api-integrations

Explanation:

API integrations scare me. Our code floats in a nightmare void of horrors, so it's not a bad idea to get a little hands-on with our integration methodology.

files:

basic_slack.rb - A rudimentary, classes implementation of the Slack integration.

slack_service.rb - a basic 'service object' design for integrating with API's.

slack.rb - A "Service" that takes in external information and converts it into API-friendly parameters, with an injectable API component.

slack_api.rb - a thin, stateless wrapper over the HTTP calls

slack_fake.rb - a Data formatter, meant to be the API when we run our tests.