Sha256: 67db51a639cdbdbd73fd3f9713fdf620fda5bd737d150850a839fe0737affe59

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module ThinRest
  module Resources
    class InternalError < Resource
      property :error
      def get
        connection.send_head(500)
        connection.send_body(Representations::InternalError.new(self, :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.0 vendor/js-test-core/vendor/thin-rest/lib/thin_rest/resources/internal_error.rb
pivotal-screw-unit-0.4.1 vendor/js-test-core/vendor/thin-rest/lib/thin_rest/resources/internal_error.rb