Class: FortyTwo::Endpoint::UserSessions

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ UserSessions

Returns a new instance of UserSessions.



9
10
11
# File 'lib/fortytwo/endpoints/user_sessions.rb', line 9

def initialize(client)
  @client = client
end

Instance Method Details

#user_sessions(username, start_time = last_monday, end_time = right_now, params = { per_page: 100 }) ⇒ Object



13
14
15
# File 'lib/fortytwo/endpoints/user_sessions.rb', line 13

def user_sessions(username, start_time = last_monday, end_time = right_now, params = { per_page: 100 })
  Response::UserSessions.new(user_sessions_request(username, start_time, end_time, params))
end