class SecupayRuby::Requests::Response

Attributes

data[RW]
errors[RW]
http_status[RW]
status[RW]

Public Class Methods

new(http_status:, status:, data:, errors:) click to toggle source
# File lib/secupay_ruby/requests/response.rb, line 6
def initialize(http_status:, status:, data:, errors:)
  self.http_status = http_status
  self.status = status
  self.data = data
  self.errors = errors
end

Public Instance Methods

failed?() click to toggle source
# File lib/secupay_ruby/requests/response.rb, line 13
def failed?
  http_status != "200" || status != "ok"
end