Class: Oz::Resources::Conversations

Inherits:
Base
  • Object
show all
Defined in:
lib/oz/resources/conversations.rb

Overview

Look up redirects for agent conversations, reachable via client.agent.conversations.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Oz::Resources::Base

Instance Method Details

#check_redirect(conversation_id) ⇒ Oz::Model

Resolve where a conversation id should redirect to.

Parameters:

  • conversation_id (String)

Returns:



11
12
13
# File 'lib/oz/resources/conversations.rb', line 11

def check_redirect(conversation_id)
  model(@client.get("/agent/conversations/#{enc(conversation_id)}/redirect"))
end