lib/amazon/ecs.rb in amazon-ecs-1.2.1 vs lib/amazon/ecs.rb in amazon-ecs-1.2.2
- old
+ new
@@ -185,9 +185,17 @@
unless @total_pages
@total_pages = (@doc/"totalpages").inner_html.to_i
end
@total_pages
end
+
+ def marshal_dump
+ @doc.to_s
+ end
+
+ def marshal_load(xml)
+ initialize(xml)
+ end
end
protected
def self.log(s)
return unless self.debug