class Enigma::Client

Connects to the Enigma api at app.enigma.io/api.

Public Class Methods

new(opts = {}) click to toggle source

Creates a new client connection

@option opts [String] key - Enigma API key.

The api key Defaults to the ENIGMA_KEY environment variable

# File lib/enigma/client.rb, line 13
def initialize(opts = {})
  Enigma.key = ENV['ENIGMA_KEY'] || opts[:key]
  fail ArgumentError, 'API key is required' unless Enigma.key
end