Sha256: aca20197819b6976211fbafe346c1a7179ad0b95e5018e351c91a183b84f8d34
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
module Minered module Client def self.get(url) response = Typhoeus.get(url) end def self.post(options={}) url = options.delete(:url) key = options.delete(:key) url = "http://#{url}?key=#{key}" issue = {issue: options} response = Typhoeus.post(url, body: issue) puts Crack::XML.parse(response.body) end def self.put(url) response = Typhoeus.put(url) end def self.delete(url) response = Typhoeus.delete(url) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minered-0.0.7 | lib/minered/client.rb |