Class: ICWS::Interactions::InteractionManager

Inherits:
Object
  • Object
show all
Defined in:
lib/icws/interactions/interactionmanager.rb

Instance Method Summary collapse

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