Permalink
Browse files

add error class representing wrong responses

  • Loading branch information...
1 parent cd8dd49 commit 9a58faa8a63c060ac397e40d99f8aad92e575bca @rafaelss committed May 23, 2012
Showing with 10 additions and 0 deletions.
  1. +1 −0 lib/cielo.rb
  2. +9 −0 lib/cielo/error.rb
View
@@ -3,6 +3,7 @@
module Cielo
autoload :Configuration, "cielo/configuration"
+ autoload :Error, "cielo/error"
autoload :Shop, "cielo/shop"
autoload :Order, "cielo/order"
View
@@ -0,0 +1,9 @@
+module Cielo
+ class Error
+ include HappyMapper
+
+ tag "erro"
+ element :code, Integer, :tag => "codigo"
+ element :message, String, :tag => "mensagem"
+ end
+end

0 comments on commit 9a58faa

Please sign in to comment.