Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
http-commands / lib / http / commands / response.rb
Size: Mime:
module HTTP
  module Commands
    class Response
      attr_reader :body
      attr_reader :response

      def initialize(response, body)
        @body = body
        @response = response
      end

      def method_missing(method_name, *arguments, &block)
        response.public_send method_name, *arguments, &block
      end

      def respond_to?(method_name)
        return true if super
        response.respond_to? method_name
      end
    end
  end
end