Class: GoCardlessPro::Resources::Payment::Links
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::Payment::Links
- Defined in:
- lib/gocardless_pro/resources/payment.rb
Instance Method Summary collapse
- #creditor ⇒ Object
-
#initialize(links) ⇒ Links
constructor
A new instance of Links.
- #instalment_schedule ⇒ Object
- #mandate ⇒ Object
- #payout ⇒ Object
- #subscription ⇒ Object
Constructor Details
#initialize(links) ⇒ Links
Returns a new instance of Links.
79 80 81 |
# File 'lib/gocardless_pro/resources/payment.rb', line 79 def initialize(links) @links = links || {} end |
Instance Method Details
#creditor ⇒ Object
83 84 85 |
# File 'lib/gocardless_pro/resources/payment.rb', line 83 def creditor @links['creditor'] end |
#instalment_schedule ⇒ Object
87 88 89 |
# File 'lib/gocardless_pro/resources/payment.rb', line 87 def instalment_schedule @links['instalment_schedule'] end |
#mandate ⇒ Object
91 92 93 |
# File 'lib/gocardless_pro/resources/payment.rb', line 91 def mandate @links['mandate'] end |
#payout ⇒ Object
95 96 97 |
# File 'lib/gocardless_pro/resources/payment.rb', line 95 def payout @links['payout'] end |
#subscription ⇒ Object
99 100 101 |
# File 'lib/gocardless_pro/resources/payment.rb', line 99 def subscription @links['subscription'] end |