Class: SkypeR::Parser::SearchFriendsCommand

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

Overview

<search_friends_command> := SEARCH FRIENDS <search_friends_response> := USERS [user*]

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeSearchFriendsCommand

Returns a new instance of SearchFriendsCommand.



218
219
220
221
222
223
224
225
# File 'lib/skyper/command.rb', line 218

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