Class: SipgateIo::Hangup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EventProcessor

#process

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_idObject (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

#causeObject (readonly)

Returns the value of attribute cause.



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

def cause
  @cause
end

#eventObject (readonly)

Returns the value of attribute event.



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

def event
  @event
end