Sha256: 793e62befda86e4f747595964c0f6ff1b0be8bf635caa5ffcb75172dcaf70b7d
Contents?: true
Size: 290 Bytes
Versions: 2
Compression:
Stored size: 290 Bytes
Contents
module Zelda class Request def self.get(url) HTTParty.get parse_url(url) end def self.parse_url(*args) raise "No Zelda::API_KEY specified" unless defined?(Zelda::API_KEY) "http://zelda.omroep.nl/#{ Zelda::API_KEY }/#{ args.join('/') }" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bartzon-zelda-0.0.2 | lib/zelda/request.rb |
bartzon-zelda-0.0.3 | lib/zelda/request.rb |