We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2729d32 commit 5f906aaCopy full SHA for 5f906aa
packages/ruby/lib/readme/payload.rb
@@ -7,13 +7,11 @@ class Payload
7
def initialize(har, info, development:)
8
@har = har
9
# swap api_key for id
10
- info[:id] = info.delete :api_key unless info[:api_key].nil?
11
# pull log_id and ignore fields out of info to construct a user_info hash that can be assigned to the group key
12
@log_id = info[:log_id]
13
@ignore = info[:ignore]
14
- info.delete :log_id
15
- info.delete :ignore
16
- @user_info = info
+ @user_info = info.except(:api_key, :log_id, :ignore)
+ @user_info[:id] = info[:api_key] unless info[:api_key].nil?
17
@development = development
18
@uuid = UUID.new
19
end
0 commit comments