Class: Hash
- Inherits:
-
Object
- Object
- Hash
- 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_original ⇒ Object
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 |