class Adp::Product::Userinfo::Helper
Attributes
connection[RW]
url_map[RW]
Public Class Methods
new(conn, urlmap = [])
click to toggle source
@param [Object] conn @param [Object] urlmap
# File lib/adp/product/userinfo/helper.rb, line 12 def initialize(conn, urlmap = []) raise ConnectionException, "Connection error: invalid connection (null)" unless (!conn.nil?) self.connection = conn self.url_map = urlmap @producturl = "https://iat-api.adp.com/core/v1/userinfo" end
Public Instance Methods
get_user_info()
click to toggle source
@return [Object]
# File lib/adp/product/userinfo/helper.rb, line 24 def get_user_info #Checking if we have connection object raise ConnectionException, "Connection error: not connected" unless !self.connection.nil? #Checking if we are connected raise ConnectionException, "Connection error: not connected" unless self.connection.is_connected_indicator? #Now get the adp data using #{@producturl} data = self.connection.get_adp_data(@producturl) return data end