Class: SkypeR::Parser::Command

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

Overview

<command> := <name_command>

| <get_command>
| <search_command>
| <set_command>
| <call_command>
| <voicemail_command>
| <chat_command>
| <history_command>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeCommand

Returns a new instance of Command.



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/skyper/command.rb', line 48

def initialize
  @parser = lambda do
    Yaparc::AltParser.new(
                          GetCommand.new,
                          SearchCommand.new,
                          SetCommand.new,
                          CallCommand.new,
                          VoicemailCommand.new,
                          ChatCommand.new,
                          HistoryCommand.new
                          )
  end
end