Sha256: be3978f4da28e24ca1a5986938717dbca5421213a9f51eaa9838f12e1b4f52f7

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

require "faraday"

# utilities
require "kek/version"
require "kek/json"

# methods
require "kek/keys"
require "kek/directory"

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.1.0 lib/kek.rb