Class: SipgateIo::Hangup
- Inherits:
-
Object
- Object
- SipgateIo::Hangup
- Includes:
- ActiveModel::Validations, EventProcessor
- Defined in:
- lib/sipgate_io/hangup.rb
Instance Attribute Summary collapse
-
#call_id ⇒ Object
readonly
Returns the value of attribute call_id.
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(params) ⇒ Hangup
constructor
A new instance of Hangup.
Methods included from EventProcessor
Constructor Details
#initialize(params) ⇒ Hangup
Returns a new instance of Hangup.
12 13 14 15 16 |
# File 'lib/sipgate_io/hangup.rb', line 12 def initialize(params) @event = params[:event] @call_id = params[:callId] @cause = params[:cause] end |
Instance Attribute Details
#call_id ⇒ Object (readonly)
Returns the value of attribute call_id.
6 7 8 |
# File 'lib/sipgate_io/hangup.rb', line 6 def call_id @call_id end |
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/sipgate_io/hangup.rb', line 6 def cause @cause end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
6 7 8 |
# File 'lib/sipgate_io/hangup.rb', line 6 def event @event end |