Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add error class representing wrong responses

  • Loading branch information...
commit 9a58faa8a63c060ac397e40d99f8aad92e575bca 1 parent cd8dd49
@rafaelss authored
Showing with 10 additions and 0 deletions.
  1. +1 −0  lib/cielo.rb
  2. +9 −0 lib/cielo/error.rb
View
1  lib/cielo.rb
@@ -3,6 +3,7 @@
module Cielo
autoload :Configuration, "cielo/configuration"
+ autoload :Error, "cielo/error"
autoload :Shop, "cielo/shop"
autoload :Order, "cielo/order"
View
9 lib/cielo/error.rb
@@ -0,0 +1,9 @@
+module Cielo
+ class Error
+ include HappyMapper
+
+ tag "erro"
+ element :code, Integer, :tag => "codigo"
+ element :message, String, :tag => "mensagem"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.