Class: Quaff::CSeq

Inherits:
Object
  • Object
show all
Defined in:
lib/call.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(cseq_str) ⇒ CSeq

Returns a new instance of CSeq.



9
10
11
12
# File 'lib/call.rb', line 9

def initialize cseq_str
  @num, @method = cseq_str.split
  @num = @num.to_i
end

Instance Method Details

#incrementObject



14
15
16
17
# File 'lib/call.rb', line 14

def increment
  @num = @num + 1
  to_s
end

#to_sObject



19
20
21
# File 'lib/call.rb', line 19

def to_s
  "#{@num.to_s} #{@method}"
end