lib/amazon/ecs.rb in amazon-ecs-0.5.3 vs lib/amazon/ecs.rb in amazon-ecs-0.5.4

- old
+ new

@@ -127,9 +127,14 @@ # Return error message. def error Element.get(@doc, "error/message") end + # Return error code + def error_code + Element.get(@doc, "error/code") + end + # Return an array of Amazon::Element item objects. def items unless @items @items = (@doc/"item").collect {|item| Element.new(item)} end \ No newline at end of file