Method: WebMock::Util::HashCounter#get

Defined in:
lib/webmock/util/hash_counter.rb

#get(key) ⇒ Object



19
20
21
22
23
# File 'lib/webmock/util/hash_counter.rb', line 19

def get key
  @lock.synchronize do
    hash[key] || 0
  end
end