Class: SkypeR::Parser::GetProfileCommand

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

Overview

<get_profile_command> := GET PROFILE <profile_property>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeGetProfileCommand

Returns a new instance of GetProfileCommand.



145
146
147
148
149
150
151
152
153
154
# File 'lib/skyper/command.rb', line 145

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(Yaparc::Symbol.new("GET"),
                          Yaparc::Symbol.new("PROFILE"),
                          ProfileProperty.new) do |_,_,property|
      {:command_instance => self, :property => property}
    end
  end
  @response = GetProfileResponse.new
end