Class: SipgateIo::NewCall
- Inherits:
-
Object
- Object
- SipgateIo::NewCall
- Includes:
- ActiveModel::Validations, EventProcessor
- Defined in:
- lib/sipgate_io/new_call.rb
Instance Attribute Summary collapse
-
#call_id ⇒ Object
readonly
Returns the value of attribute call_id.
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#diversion ⇒ Object
readonly
Returns the value of attribute diversion.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#users ⇒ Object
readonly
Returns the value of attribute users.
Instance Method Summary collapse
-
#initialize(params) ⇒ NewCall
constructor
A new instance of NewCall.
Methods included from EventProcessor
Constructor Details
#initialize(params) ⇒ NewCall
Returns a new instance of NewCall.
13 14 15 16 17 18 19 20 21 |
# File 'lib/sipgate_io/new_call.rb', line 13 def initialize(params) @to = params[:to] @from = params[:from] @direction = params[:direction] @event = params[:event] @call_id = params[:callId] @users = params[:user] @diversion = params[:diversion] unless params[:diversion].blank? end |
Instance Attribute Details
#call_id ⇒ Object (readonly)
Returns the value of attribute call_id.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def call_id @call_id end |
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def direction @direction end |
#diversion ⇒ Object (readonly)
Returns the value of attribute diversion.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def diversion @diversion end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def event @event end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def to @to end |
#users ⇒ Object (readonly)
Returns the value of attribute users.
6 7 8 |
# File 'lib/sipgate_io/new_call.rb', line 6 def users @users end |