Sha256: 2176a853cfa54b5cebc6c72349b5811e4a8f5aa171c20d4edbd20df43a130bb5

Contents?: true

Size: 431 Bytes

Versions: 21

Compression:

Stored size: 431 Bytes

Contents

module Capybara::Poltergeist::NetworkTraffic
  class Request
    attr_reader :response_parts

    def initialize(data, response_parts = [])
      @data           = data
      @response_parts = response_parts
    end

    def url
      @data['url']
    end

    def method
      @data['method']
    end

    def headers
      @data['headers']
    end

    def time
      @data['time'] && Time.parse(@data['time'])
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
poltergeist-1.8.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.7.0 lib/capybara/poltergeist/network_traffic/request.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/poltergeist-1.6.0/lib/capybara/poltergeist/network_traffic/request.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/poltergeist-1.6.0/lib/capybara/poltergeist/network_traffic/request.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/poltergeist-1.6.0/lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.6.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-cj-1.5.2 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.5.1 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.5.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.4.1 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.4.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.1.2 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.0.3 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.3.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.1.1 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.2.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.1.0 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.0.2 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.0.1 lib/capybara/poltergeist/network_traffic/request.rb
poltergeist-1.0.0 lib/capybara/poltergeist/network_traffic/request.rb