Sha256: 0ba02498b9e4c9d5f6442d466b4af5f2501e8fa677bd8e2d0573121ef01c4bf8

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

# encoding: utf-8
require 'ting_yun/support/http_clients/uri_util'
module TingYun
  module Http
    class AbstractRequest
      ERROR_MESSAGE = 'Subclasses of TingYun::Http::AbstractRequest must implement a '.freeze

      def []
        raise NotImplementedError, ERROR_MESSAGE + ':[] method'
      end

      def []=
        raise NotImplementedError, ERROR_MESSAGE + ':[]= method'
      end

      def from
        raise NotImplementedError, ERROR_MESSAGE + ':from method'
      end


    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tingyun_rpm-1.6.1 lib/ting_yun/http/abstract_request.rb
tingyun_rpm-1.5.0 lib/ting_yun/http/abstract_request.rb