Class: PagSeguro::Authorization::ResponseSerializer
- Inherits:
-
Object
- Object
- PagSeguro::Authorization::ResponseSerializer
- Defined in:
- lib/pagseguro/authorization/response_serializer.rb
Instance Method Summary collapse
-
#initialize(xml) ⇒ ResponseSerializer
constructor
A new instance of ResponseSerializer.
- #serialize ⇒ Object
Constructor Details
#initialize(xml) ⇒ ResponseSerializer
Returns a new instance of ResponseSerializer.
5 6 7 |
# File 'lib/pagseguro/authorization/response_serializer.rb', line 5 def initialize(xml) @xml = xml end |
Instance Method Details
#serialize ⇒ Object
9 10 11 12 13 14 |
# File 'lib/pagseguro/authorization/response_serializer.rb', line 9 def serialize {}.tap do |data| serialize_general(data) (data) end end |