Sha256: f01729b0985ae6e1932112b83f33bdd69adc37156b64fc91db258843c5aa06fd
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
module SipgateIo class Answer include ActiveModel::Validations include SipgateIo::EventProcessor attr_reader :event, :call_id, :user validates :event, :call_id, :user, presence: true validates :event, inclusion: { in: %w(answer) } def initialize(params) @event = params[:event] @call_id = params[:callId] @user = params[:user] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sipgate_io-0.3.4 | lib/sipgate_io/answer.rb |
sipgate_io-0.3.3 | lib/sipgate_io/answer.rb |
sipgate_io-0.3.1 | lib/sipgate_io/answer.rb |