Sha256: 1b230825d596d16d89af66789ccfd0fa4a2417b46f604172bf7f90b81f73533d
Contents?: true
Size: 820 Bytes
Versions: 1
Compression:
Stored size: 820 Bytes
Contents
require "httparty" module Databox autoload :VERSION, "databox/version" autoload :Client, "databox/client" autoload :Configuration, "databox/configuration" autoload :Integration, "databox/integration" autoload :Pipeline, "databox/integration" autoload :Funnel, "databox/integration" autoload :Pie, "databox/integration" autoload :Messages, "databox/integration" class << self attr_accessor :configuration def configured? return false if configuration.nil? [configuration.token, configuration.key, configuration.url].compact.size == 3 end def client @client ||= Databox::Client.new end end def self.configure self.configuration ||= Configuration.new yield configuration if block_given? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
databox-0.0.3 | lib/databox.rb |