lib/zapi_agent.rb in zaui_zapi-0.2.1 vs lib/zapi_agent.rb in zaui_zapi-0.2.4
- old
+ new
@@ -15,9 +15,14 @@
def response_msg
response.try(:[],'methodErrorMessage')
end
+ def history
+#raise response.inspect
+ Zaui.agents_get_profile(agent_id: _user_id)
+ end
+
def session_hash
{
user_id: _user_id,
account_id: _account_id,
account_type: _account_type,