Sha256: ac395bd2d6ee6d4545d277cc1756d2fcaee3f760e97b03360f8a81cd5c2678a1
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require "frenchy/core_ext" require "frenchy/client" require "frenchy/collection" require "frenchy/error" require "frenchy/instrumentation" require "frenchy/model" require "frenchy/request" require "frenchy/resource" require "frenchy/veneer" require "frenchy/version" module Frenchy class_eval do @services = {} end def self.register_service(name, options={}) @services[name.to_s] = Frenchy::Client.new(options) end def self.find_service(name) @services[name.to_s] || raise(Frenchy::Error, "No service '#{name}' registered") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
frenchy-0.2.2 | lib/frenchy.rb |
frenchy-0.2.1 | lib/frenchy.rb |