Sha256: 1b1b2c62aa4c2a2124b63485b6a386bdf502b4df3b641d116a11c6f2e4e94e1f
Contents?: true
Size: 432 Bytes
Versions: 6
Compression:
Stored size: 432 Bytes
Contents
require "jkl" require "net/http" require "uri" require 'yaml' module Rsift class Connection def initialize(url, key, username) @api_url = url @api_key = key @username = username end def get(path) request = "#{@api_url}#{path}#{auth_string}" JSON.parse(Jkl::get_from(request)) end def auth_string "&username=#{@username}&api_key=#{@api_key}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems