Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/taskmapper-basecamp.rb

Class Method Summary collapse

Class Method Details

.from_xml(xml) ⇒ Object



16
17
18
19
# File 'lib/taskmapper-basecamp.rb', line 16

def from_xml(xml)
  scrubbed = scrub_attributes(xml)
  from_xml_original(scrubbed)
end

.from_xml_originalObject



14
# File 'lib/taskmapper-basecamp.rb', line 14

alias_method :from_xml_original, :from_xml

.scrub_attributes(xml) ⇒ Object



21
22
23
# File 'lib/taskmapper-basecamp.rb', line 21

def scrub_attributes(xml)
  xml.gsub(/<comments type=\"array\" count=\"*\">/, "<stories type=\"array\">")
end