Class: AuthenticationNewsessResponse

Inherits:
AuthenticationResponse show all
Defined in:
lib/refworks/authentication/newsess/authentication_newsess_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#body, #parsed_response, #process_time, #result_code, #result_msg, #result_msg_code

Instance Method Summary collapse

Constructor Details

#initialize(raw_response) ⇒ AuthenticationNewsessResponse

Returns a new instance of AuthenticationNewsessResponse.



5
6
7
8
# File 'lib/refworks/authentication/newsess/authentication_newsess_response.rb', line 5

def initialize(raw_response)
  super(raw_response)
  @sess = self.parsed_response["refworks"]["RWResult"]["CallInfo"]["sess"]
end

Instance Attribute Details

#sessObject (readonly)

Returns the value of attribute sess.



3
4
5
# File 'lib/refworks/authentication/newsess/authentication_newsess_response.rb', line 3

def sess
  @sess
end