Class: PagSeguro::Authorization::ResponseSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/pagseguro/authorization/response_serializer.rb

Instance Method Summary collapse

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

#serializeObject



9
10
11
12
13
14
# File 'lib/pagseguro/authorization/response_serializer.rb', line 9

def serialize
  {}.tap do |data|
    serialize_general(data)
    serialize_permissions(data)
  end
end