Class: DefraRubyGovpay::Refund

Inherits:
Object
  • Object
show all
Defined in:
lib/defra_ruby_govpay/refund.rb

Overview

The Refund class represents a refund object in the Govpay Integration. It provides methods to check the status of a refund.

Instance Method Summary collapse

Methods inherited from Object

#initialize, #nil_value?, #string_reader, #to_ostruct

Constructor Details

This class inherits a constructor from DefraRubyGovpay::Object

Instance Method Details

#submitted?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/defra_ruby_govpay/refund.rb', line 11

def 
  status == "submitted"
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/defra_ruby_govpay/refund.rb', line 7

def success?
  status == "success"
end