Class: PagSeguro::Errors

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/pagseguro/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ Errors



8
9
10
11
12
13
# File 'lib/pagseguro/errors.rb', line 8

def initialize(response = nil)
  @response = response
  @messages = []

  process_response if response
end