Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "abstraction"
- class Ratings
- abstract
- def fetchRating(videoId)
- raise NotImplementedError
- end
- end
- class ImdbRatings < Ratings
- def fetchRating(imdbId)
- # code to connect to IMDB API
- end
- end
Add Comment
Please, Sign In to add comment