Sha256: 0c6269ee73ca28ecd6ac2e6ad5b10be485182c34c926f340b86ea19b384ef830

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

module XMLRPC
  class XMLRPC::Client
    attr_reader :method_name, :args
    attr_accessor :uri

    def initialize
    end

    def self.new2(uri)
      @@pings ||= []
      client = new
      client.uri = uri
      client
    end

    def self.pings
      @@pings
    end

    def call(name, *args)
      @method_name = name
      @args = *args
      @@pings ||= []
      @@pings << self
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-3.99.0 test/mocks/test/xmlrpc_mock.rb
typo-3.99.3 test/mocks/test/xmlrpc_mock.rb
typo-3.99.1 test/mocks/test/xmlrpc_mock.rb
typo-3.99.2 test/mocks/test/xmlrpc_mock.rb
typo-3.99.4 test/mocks/test/xmlrpc_mock.rb
typo-4.0.0 test/mocks/test/xmlrpc_mock.rb