Class: SipgateIo::Dtmf

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations, EventProcessor
Defined in:
lib/sipgate_io/dtmf.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EventProcessor

#process

Constructor Details

#initialize(params) ⇒ Dtmf

Returns a new instance of Dtmf.



12
13
14
15
16
# File 'lib/sipgate_io/dtmf.rb', line 12

def initialize(params)
  @event = params[:event]
  @call_id = params[:callId]
  @dtmf = params[:dtmf]
end

Instance Attribute Details

#call_idObject (readonly)

Returns the value of attribute call_id.



6
7
8
# File 'lib/sipgate_io/dtmf.rb', line 6

def call_id
  @call_id
end

#dtmfObject (readonly)

Returns the value of attribute dtmf.



6
7
8
# File 'lib/sipgate_io/dtmf.rb', line 6

def dtmf
  @dtmf
end

#eventObject (readonly)

Returns the value of attribute event.



6
7
8
# File 'lib/sipgate_io/dtmf.rb', line 6

def event
  @event
end