class Adyen::AdyenResult

Attributes

header[R]
response[R]
status[R]

Public Class Methods

new(response, header, status) click to toggle source
# File lib/adyen/result.rb, line 7
def initialize(response, header, status)
  @response = JSON.parse(response, object_class: HashWithAccessors)

  # `header` in Faraday response is not a JSON string, but rather a
  # Faraday `Headers` object. Convert first before parsing
  @header = JSON.parse(header.to_json, object_class: HashWithAccessors)
  @status = status
end