Module: Async::Background::Web

Defined in:
lib/async/background/web.rb,
lib/async/background/web/app.rb,
lib/async/background/web/sql.rb,
lib/async/background/web/auth.rb,
lib/async/background/web/assets.rb,
lib/async/background/web/cursor.rb,
lib/async/background/web/errors.rb,
lib/async/background/web/router.rb,
lib/async/background/web/stream.rb,
lib/async/background/web/request.rb,
lib/async/background/web/response.rb,
lib/async/background/web/snapshot.rb,
lib/async/background/web/event_hub.rb,
lib/async/background/web/serializer.rb,
lib/async/background/web/configuration.rb,
lib/async/background/web/metrics_reader.rb

Defined Under Namespace

Modules: Assets, Cursor, Response, SQL Classes: App, Auth, ClosedError, Configuration, ConfigurationError, Error, EventHub, MetricsReader, NotConfiguredError, Request, RequestError, Router, Serializer, Snapshot, Stream, UnavailableError

Class Method Summary collapse

Class Method Details

.appObject



47
48
49
# File 'lib/async/background/web.rb', line 47

def app
  App.new(configuration)
end

.configurationObject



38
39
40
41
# File 'lib/async/background/web.rb', line 38

def configuration
  @configuration or raise NotConfiguredError,
                         'Async::Background::Web is not configured. Call Async::Background::Web.configure.'
end

.configure {|@configuration| ... } ⇒ Object

Yields:



32
33
34
35
36
# File 'lib/async/background/web.rb', line 32

def configure
  @configuration ||= Configuration.new
  yield @configuration if block_given?
  @configuration
end

.reset!Object



43
44
45
# File 'lib/async/background/web.rb', line 43

def reset!
  @configuration = nil
end