Rapidly Mapping JSON/XML API Schemas in Ruby
summary
Builds a Ruby adapter that turns a JSON schema into pure-Ruby instances that can consume modify and re-export JSON and XML, demonstrated against the Google Civic API and available on GitHub. Uses an HTTP client (http party/http), a connection + client routing table with method_missing for dynamic endpoints and versioning, coerces hashes into objects via openstruct and dynamic classes with const_set, and recommends the representable gem. Shows catch‑and‑release fixes like Hash#fetch to surface schema changes quickly.
AI-written summary · about
chapters (4)
- 0:00Start
- 4:46Connection: Relationship Manager
- 12:05Client: Routing and Collection
- 22:08Representation: Entity mapping








