Class: FortyTwo::Endpoint::User

Inherits:
Object
  • Object
show all
Defined in:
lib/fortytwo/endpoints/user.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ User

Returns a new instance of User.



7
8
9
# File 'lib/fortytwo/endpoints/user.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#user(username, params = { per_page: 100 }) ⇒ Object



11
12
13
# File 'lib/fortytwo/endpoints/user.rb', line 11

def user(username, params = { per_page: 100 })
  Response::User.new(user_request(username, params))
end