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