Sha256: 2102969c3cb35e3dc3bb1541cb225c70d0aca157bc47ae8e69821b1205f4880a

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

module Zelda
  class Request
    def self.get(url)
      HTTParty.get parse_url(url)
    end
    
    def self.parse_url(*args)
      "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.0 lib/zelda/request.rb
bartzon-zelda-0.0.1 lib/zelda/request.rb