Class: SkypeR::Parser::GetUserCommand
- Inherits:
-
CommandBase
- Object
- Yaparc::AbstractParser
- CommandBase
- SkypeR::Parser::GetUserCommand
- Defined in:
- lib/skyper/command.rb
Overview
<get_user_command> := GET USER <username> <user_property>
Instance Attribute Summary
Attributes inherited from CommandBase
Instance Method Summary collapse
-
#initialize ⇒ GetUserCommand
constructor
A new instance of GetUserCommand.
Constructor Details
#initialize ⇒ GetUserCommand
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 |