Class: SkypeR::Parser::ProfileProperty

Inherits:
Yaparc::AbstractParser
  • Object
show all
Defined in:
lib/skyper/parser.rb

Overview

<profile_property> := PSTN_BALANCE | FULLNAME | BIRTHDAY | SEX | LANGUAGES | TIMEZONE

Instance Method Summary collapse

Constructor Details

#initializeProfileProperty

Returns a new instance of ProfileProperty.



76
77
78
79
80
81
# File 'lib/skyper/parser.rb', line 76

def initialize
  properties = %w{PSTN_BALANCE FULLNAME BIRTHDAY SEX LANGUAGES TIMEZONE}.map {|item| Yaparc::Symbol.new(item)}
  @parser = lambda do
    Yaparc::AltParser.new(*properties)
  end
end