Sha256: dd39f8e90190add6076cdde6fe66472618ad019e9e63a6f50d6e19a000eb8d69
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module ServiceDowntimeSimulator module Modes class Base def initialize(app) @app = app end def call(env) @env = env [status, headers, body] end private def headers { 'X-SDS-Mode' => identifier } end def body ["Simulated Response (#{identifier})"] end def status raise NotImplementedError end def identifier self.class.name end attr_reader :app, :env end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
service_downtime_simulator-0.1.1 | lib/service_downtime_simulator/modes/base.rb |