# File lib/peek/adapters/elasticsearch.rb, line 21 def save @client.index index: @index, type: @type, id: "#{Peek.request_id}", body: Peek.results.to_json, ttl: @expires_in rescue ::Elasticsearch::Transport::Transport::Errors::BadRequest false end