Class: SipgateIo::Dtmf
- Inherits:
-
Object
- Object
- SipgateIo::Dtmf
- Includes:
- ActiveModel::Validations, EventProcessor
- Defined in:
- lib/sipgate_io/dtmf.rb
Instance Attribute Summary collapse
-
#call_id ⇒ Object
readonly
Returns the value of attribute call_id.
-
#dtmf ⇒ Object
readonly
Returns the value of attribute dtmf.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(params) ⇒ Dtmf
constructor
A new instance of Dtmf.
Methods included from EventProcessor
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_id ⇒ Object (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 |
#dtmf ⇒ Object (readonly)
Returns the value of attribute dtmf.
6 7 8 |
# File 'lib/sipgate_io/dtmf.rb', line 6 def dtmf @dtmf end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
6 7 8 |
# File 'lib/sipgate_io/dtmf.rb', line 6 def event @event end |