class HTTPX::Plugins::Expect::Store

  1. lib/httpx/plugins/expect.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. add
  2. delete
  3. include?

Public Class methods

new()
[show source]
   # File lib/httpx/plugins/expect.rb
15 def initialize
16   @store = []
17   @mutex = Thread::Mutex.new
18 end

Public Instance methods

add(host)
[show source]
   # File lib/httpx/plugins/expect.rb
24 def add(host)
25   @mutex.synchronize { @store << host }
26 end
delete(host)
[show source]
   # File lib/httpx/plugins/expect.rb
28 def delete(host)
29   @mutex.synchronize { @store.delete(host) }
30 end
include?(host)
[show source]
   # File lib/httpx/plugins/expect.rb
20 def include?(host)
21   @mutex.synchronize { @store.include?(host) }
22 end