Sha256: 60b84847cf0aa931b76d7345c72da1a1fe64e5b21f83f5f66bac1e72a84a9432

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

require 'observer'

module Debug
  class Inspector
    def initialize(client)
      client.add_observer(self)
    end

    def update(url, request, response, result)
      p '--------------------------'
      p "SENDING REQUEST TO: #{url}"
      p "WITH PARAMS:        #{request}"
      p "GETTING RESPONSE:   #{response}"
      p "RESULT:             #{result}"
      p '--------------------------'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dpd_api-0.1.10 lib/dpd_api/debug/inspector.rb
dpd_api-0.1.9 lib/dpd_api/debug/inspector.rb
dpd_api-0.1.8 lib/dpd_api/debug/inspector.rb
dpd_api-0.1.7 lib/dpd_api/debug/inspector.rb
dpd_api-0.1.6 lib/dpd_api/debug/inspector.rb
dpd_api-0.1.5 lib/dpd_api/debug/inspector.rb