Class: SkypeR::Parser::Target

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

Overview

<target> := <username>

        |  <pstn> # {PSTN phone number}
        |  <speed dial code>
<username> := {Skype username}
<speed dial code> := [a-zA-Z][1-2]

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeTarget

Returns a new instance of Target.



479
480
481
482
483
484
485
# File 'lib/skyper/command.rb', line 479

def initialize
  @parser = lambda do
    Yaparc::AltParser.new(Username.new,
                          PSTN.new,
                          SpeedDialCode.new)
  end
end