Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#stringify_stringObject



3
4
5
6
7
8
# File 'lib/core_ext/string.rb', line 3

def stringify_string
  hash = Hash.from_xml(self)
  "ST=#{hash['ListOpenMeetings']['Status']}&RS=#{hash['ListOpenMeetings']['Reason']}&MeetingKeys=#{hash['ListOpenMeetings']['MeetingKeys']}"
rescue
  match(/(var url = |window.location.replace\()\"(.*)\"/)[2].gsub!('\\x3a',':').gsub!('\\x2f','/').gsub!('\\x3f','?').gsub!('\\x3d','=').gsub!('\\x26','&').split('?').last
end