Class: DssReuters::User
Instance Method Summary collapse
-
#initialize(session) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(session) ⇒ User
Returns a new instance of User.
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/dss_reuters.rb', line 47 def initialize(session) @session = session path = "/RestApi/v1/Users/Users(#{Config::DSS_USERNAME})" = { headers: { "Prefer" => "respond-async", "Authorization" => "Token #{@session.token}" } } resp = self.class.get path, @session.logger.debug resp end |