Class: SipgateIo::Answer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EventProcessor

#process

Constructor Details

#initialize(params) ⇒ Answer

Returns a new instance of Answer.



11
12
13
14
15
# File 'lib/sipgate_io/answer.rb', line 11

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

Instance Attribute Details

#call_idObject (readonly)

Returns the value of attribute call_id.



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

def call_id
  @call_id
end

#eventObject (readonly)

Returns the value of attribute event.



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

def event
  @event
end

#userObject (readonly)

Returns the value of attribute user.



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

def user
  @user
end