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.
61 62 63 |
# File 'lib/gocardless_pro/resources/payment.rb', line 61 def initialize(links) @links = links || {} end |
Instance Method Details
#creditor ⇒ Object
65 66 67 |
# File 'lib/gocardless_pro/resources/payment.rb', line 65 def creditor @links['creditor'] end |
#instalment_schedule ⇒ Object
69 70 71 |
# File 'lib/gocardless_pro/resources/payment.rb', line 69 def instalment_schedule @links['instalment_schedule'] end |
#mandate ⇒ Object
73 74 75 |
# File 'lib/gocardless_pro/resources/payment.rb', line 73 def mandate @links['mandate'] end |
#payout ⇒ Object
77 78 79 |
# File 'lib/gocardless_pro/resources/payment.rb', line 77 def payout @links['payout'] end |
#subscription ⇒ Object
81 82 83 |
# File 'lib/gocardless_pro/resources/payment.rb', line 81 def subscription @links['subscription'] end |