Class: FortyTwo::Response::UserSessions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ UserSessions

Returns a new instance of UserSessions.



9
10
11
12
13
# File 'lib/fortytwo/responses/user_sessions.rb', line 9

def initialize(json)
  super(json)

  @user_sessions = parse(@user_sessions, Model::UserSession)
end

Instance Attribute Details

#user_sessionsObject (readonly)

Returns the value of attribute user_sessions.



7
8
9
# File 'lib/fortytwo/responses/user_sessions.rb', line 7

def user_sessions
  @user_sessions
end