Class: SkypeR::Parser::GetUserCommand

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

Overview

<get_user_command> := GET USER <username> <user_property>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeGetUserCommand

Returns a new instance of GetUserCommand.



119
120
121
122
123
124
125
126
127
128
129
# File 'lib/skyper/command.rb', line 119

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(Yaparc::Symbol.new("GET"),
                          Yaparc::Symbol.new("USER"),
                          Username.new,
                          SkypeR::Parser::UserProperty.new) do |_,_,username,property|
      {:command_instance => self, :username => username, :property => property}
    end
  end
  @response = GetUserResponse.new
end