lib/hackerone/client/user.rb in hackerone-client-0.9.1 vs lib/hackerone/client/user.rb in hackerone-client-0.10.0
- old
+ new
@@ -1,8 +1,15 @@
module HackerOne
module Client
class User
- delegate :username, to: :attributes
+ include ResourceHelper
+
+ delegate :username, :signal, :impact, :reputation, to: :attributes
+
+ def self.find(username_we_want)
+ user_json = make_get_request("users/#{username_we_want}")
+ new(user_json)
+ end
def initialize(user)
@user = user
end