class PayCertify::Insurance::Response

Attributes

original_response[RW]

Public Class Methods

new(response) click to toggle source
Calls superclass method
# File lib/paycertify/insurance.rb, line 87
def initialize(response)
  self.original_response = response
  super JSON.parse(response.body)
end

Public Instance Methods

success?() click to toggle source
# File lib/paycertify/insurance.rb, line 92
def success?
  original_response.status < 400
end