Sha256: 659a7a1f795526237dca2417303e8ffc17b63bca55064e31b300f857eea30a56
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
require "faraday" # utilities require "kek/version" require "kek/json" # methods require "kek/keys" class Kek attr_accessor :client def initialize(url) @client = Faraday.new url do |conn| conn.request :url_encoded conn.use JSONParser conn.adapter Faraday.default_adapter end end def version @client.get('/version').body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kek-1.0.0 | lib/kek.rb |