Class: FortyTwo::Endpoint::User
- Inherits:
-
Object
- Object
- FortyTwo::Endpoint::User
- Defined in:
- lib/fortytwo/endpoints/user.rb
Constant Summary collapse
- PATH =
'/v2/users'
Instance Method Summary collapse
-
#initialize(client) ⇒ User
constructor
A new instance of User.
- #user(username, params = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ User
8 9 10 |
# File 'lib/fortytwo/endpoints/user.rb', line 8 def initialize(client) @client = client end |
Instance Method Details
#user(username, params = {}) ⇒ Object
12 13 14 |
# File 'lib/fortytwo/endpoints/user.rb', line 12 def user(username, params = {}) Response::User.new(user_request(username, params)) end |