Class: SkypeR::Parser::GetCallCommand

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

Overview

<get_call_command> := GET CALL <call_id> <call_property>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeGetCallCommand

Returns a new instance of GetCallCommand.



159
160
161
162
163
164
165
166
167
168
169
# File 'lib/skyper/command.rb', line 159

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(Yaparc::Symbol.new("GET"),
                          Yaparc::Symbol.new("CALL"),
                          CallId.new,
                          SkypeR::Parser::CallProperty.new) do |_,_,call_id, property|
      {:command_instance => self, :property => property, :call_id => call_id}
    end
  end
  @response = GetCallResponse.new
end