Class: Quaff::CSeq
- Inherits:
-
Object
- Object
- Quaff::CSeq
- Defined in:
- lib/call.rb
Overview
:nodoc:
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize(cseq_str) ⇒ CSeq
constructor
A new instance of CSeq.
- #to_s ⇒ Object
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
#increment ⇒ Object
14 15 16 17 |
# File 'lib/call.rb', line 14 def increment @num = @num + 1 to_s end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/call.rb', line 19 def to_s "#{@num.to_s} #{@method}" end |