Sha256: 3ff58e219ebb1c3ff597efd0934a44f6cd2e66eb162326df97ebca90b6fe77f1

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 Bytes

Contents

module Mirage
  class Template
    class Configuration
      attr_accessor :http_method, :status, :delay, :content_type, :default
      DEFAULT_HTTP_METHOD=:get
      DEFAULT_STATUS=200
      DEFAULT_DELAY=0
      DEFAULT_CONTENT_TYPE="text/plain"
      DEFAULT_DEFAULT=false

      def initialize
        reset
      end

      def reset
        @http_method = DEFAULT_HTTP_METHOD
        @status = DEFAULT_STATUS
        @delay = DEFAULT_DELAY
        @content_type = DEFAULT_CONTENT_TYPE
        @default = DEFAULT_DEFAULT
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.9 lib/mirage/client/template/configuration.rb
mirage-3.0.0.alpha.8 lib/mirage/client/template/configuration.rb
mirage-3.0.0.alpha.7 lib/mirage/client/template/configuration.rb
mirage-3.0.0.alpha.6 lib/mirage/client/template/configuration.rb
mirage-3.0.0.alpha.5 lib/mirage/client/template/configuration.rb
mirage-3.0.0.alpha.4 lib/mirage/client/template/configuration.rb