Class: SkypeR::Parser::VoicemailCommand

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

Overview

Send voicemail to user <target> <voicemail_command> := VOICEMAIL <target> <voicemail_response> := VOICEMAIL <id> STATUS <value>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeVoicemailCommand

Returns a new instance of VoicemailCommand.



369
370
371
372
373
374
375
376
377
378
379
# File 'lib/skyper/command.rb', line 369

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(
                          Yaparc::Symbol.new("VOICEMAIL"),
                          Target.new
                          ) do |_,target|
      {:command_instance => self,:target => target}
    end
  end
  @response = VoicemailResponse.new
end