Class: XeroKiwi::Accounting::Prepayment

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/xero_kiwi/accounting/prepayment.rb

Overview

Represents a Xero Prepayment returned by the Accounting API.

See: developer.xero.com/documentation/api/accounting/prepayments

Instance Method Summary collapse

Methods included from Resource

#==, #hash, included, #initialize, #inspect, #reference?, #to_h

Instance Method Details

#receive?Boolean

Returns:

  • (Boolean)


34
# File 'lib/xero_kiwi/accounting/prepayment.rb', line 34

def receive? = type == "RECEIVE-PREPAYMENT"

#spend?Boolean

Returns:

  • (Boolean)


36
# File 'lib/xero_kiwi/accounting/prepayment.rb', line 36

def spend? = type == "SPEND-PREPAYMENT"