Class: ICWS::Interactions::InteractionManager
- Inherits:
-
Object
- Object
- ICWS::Interactions::InteractionManager
- Defined in:
- lib/icws/interactions/interactionmanager.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ InteractionManager
constructor
A new instance of InteractionManager.
- #make_call(connection, number) ⇒ Object
Constructor Details
#initialize(connection) ⇒ InteractionManager
Returns a new instance of InteractionManager.
6 7 8 |
# File 'lib/icws/interactions/interactionmanager.rb', line 6 def initialize(connection) @client = ICWS::Client.new connection end |
Instance Method Details
#make_call(connection, number) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/icws/interactions/interactionmanager.rb', line 10 def make_call (connection, number) makeCallParams = { "__type" => "urn:inin.com:interactions:createCallParameters", :target => number } result = @client.post "/interactions", makeCallParams return Interaction.new result, connection end |