Module: Anisoptera

Extended by:
Anisoptera
Included in:
Anisoptera
Defined in:
lib/anisoptera/serializer.rb,
lib/anisoptera.rb,
lib/anisoptera/app.rb,
lib/anisoptera/version.rb,
lib/anisoptera/endpoint.rb,
lib/anisoptera/commander.rb,
lib/anisoptera/sync_endpoint.rb,
lib/anisoptera/async_endpoint.rb

Overview

Stolen fr… I mean ‘borrowed’ from DragonFly github.com/markevans/dragonfly/blob/master/lib/dragonfly/serializer.rb

Defined Under Namespace

Modules: Endpoint, Serializer Classes: App, AsyncEndpoint, Commander, Config, SyncEndpoint

Constant Summary collapse

HEADERS =
{
  'Cache-Control'   => 'public, max-age=3153600'
}.freeze
VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#[](app_name) ⇒ Object



26
27
28
# File 'lib/anisoptera.rb', line 26

def [](app_name)
  @apps[app_name] ||= Anisoptera::App.new
end

#prefer_asyncObject



22
23
24
# File 'lib/anisoptera.rb', line 22

def prefer_async
  !!@prefer_async
end

#prefer_async=(bool) ⇒ Object



18
19
20
# File 'lib/anisoptera.rb', line 18

def prefer_async=(bool)
  @prefer_async = bool
end