Class: SkypeR::Parser::SearchUsersCommand

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

Overview

SEARCH USERS <target>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeSearchUsersCommand

Returns a new instance of SearchUsersCommand.



203
204
205
206
207
208
209
210
211
212
# File 'lib/skyper/command.rb', line 203

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