Sha256: 5e040095ddf2454bd092a6bb869674268dd260642fe4dc74654c713e9a8d46a0

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

module ThinRest
  module Resources
    class InternalError < Resource
      property :error
      def get
        connection.send_head(500)
        connection.send_body(Representations::InternalError.new(:error => error).to_s)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pivotal-screw-unit-0.4.2 vendor/js-test-core/vendor/thin-rest/lib/thin_rest/resources/internal_error.rb
pivotal-screw-unit-0.4.3 vendor/js-test-core/vendor/thin-rest/lib/thin_rest/resources/internal_error.rb