Sha256: dc3b19f4e78e2026ed9d68a85ae276a5e7fdd4ced0f73b9665e2557fe0cc0d8b

Contents?: true

Size: 304 Bytes

Versions: 9

Compression:

Stored size: 304 Bytes

Contents

class FakeRequest

  def initialize(
    remote_ip: "23.12.54.111",
    user_agent: "I am not a bot",
    headers: {}
  )
    self.remote_ip = remote_ip
    self.user_agent = user_agent
    self.headers = headers
  end

  attr_accessor :remote_ip
  attr_accessor :user_agent
  attr_accessor :headers
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tiddle-0.7.0 spec/support/fake_request.rb
tiddle-0.6.0 spec/support/fake_request.rb
tiddle-0.5.1 spec/support/fake_request.rb
tiddle-0.5.0 spec/support/fake_request.rb
tiddle-0.4.1 spec/support/fake_request.rb
tiddle-0.4.0 spec/support/fake_request.rb
tiddle-0.3.0 spec/support/fake_request.rb
tiddle-0.2.0 spec/support/fake_request.rb
tiddle-0.1.0 spec/support/fake_request.rb