Sha256: 081257f5925b12f659bc7505497ffe4fdb4547c4c66fd049598c732c958b49f2
Contents?: true
Size: 266 Bytes
Versions: 4
Compression:
Stored size: 266 Bytes
Contents
module Signaling::Base::UseApi extend ActiveSupport::Concern module ClassMethods def use_api(api) @api = api end def api @api or raise "API is not set for #{self.name}" end def connection api.connection end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
signaling-1.1.2 | lib/signaling/base/use_api.rb |
signaling-1.1.1 | lib/signaling/base/use_api.rb |
signaling-1.1.0 | lib/signaling/base/use_api.rb |
signaling-1.0.0 | lib/signaling/base/use_api.rb |