Class: SkypeR::Parser::SetCallFinishedCommand

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/skyper/command.rb

Overview

<set_call_finished_command> := SET CALL <id> STATUS FINISHED

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeSetCallFinishedCommand

Returns a new instance of SetCallFinishedCommand.



329
330
331
332
333
334
335
336
337
338
339
# File 'lib/skyper/command.rb', line 329

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(Yaparc::Symbol.new("SET"),
                          Yaparc::Symbol.new("CALL"),
                          CallId.new,
                          Yaparc::Symbol.new("STATUS"),
                          Yaparc::Symbol.new("FINISHED")) do |_,_,call_id,_,_|
      {:command_instance => self, :call_id => call_id}
    end
  end
end