Closed alextoul closed 5 years ago
If you're using the gem on a standalone ruby file, you'll need to require the library, as such:
require 'decathlon/sports'
sports = Decathlon::Sports.all
puts sports
I included the decathlon
namespace because the goal here is to eventually have multiple wrappers under that namespace for our different APIs.
Let me know if that's clear. But I'll add a note in the Readme file nonetheless. 👍
https://gist.github.com/alextoul/f4417bab1a33d09971b321938ba6af67