Skip to content

Commit

Permalink
Added set_useragent method (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblundun committed Oct 16, 2014
1 parent b9c0681 commit d828039
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Version 0.4.0 (2014-xx-xx)
--------------------------
Added set_domain_user_id method (#50)
Added set_ip_address method (#49)
Added set_useragent method (#48) (TODO)
Added set_useragent method (#48)
Added set_network_user_id method (#47) (TODO)

Version 0.3.0 (2014-08-29)
Expand Down
7 changes: 7 additions & 0 deletions lib/snowplow-tracker/subject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ def set_ip_address(ip)
self
end

# Set the user agent
#
def set_useragent(ua)
@standard_nv_pairs['ua'] = ua
self
end

end

end

0 comments on commit d828039

Please sign in to comment.