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.
77 78 79 |
# File 'lib/gocardless_pro/resources/payment.rb', line 77 def initialize(links) @links = links || {} end |
Instance Method Details
#creditor ⇒ Object
81 82 83 |
# File 'lib/gocardless_pro/resources/payment.rb', line 81 def creditor @links['creditor'] end |
#instalment_schedule ⇒ Object
85 86 87 |
# File 'lib/gocardless_pro/resources/payment.rb', line 85 def instalment_schedule @links['instalment_schedule'] end |
#mandate ⇒ Object
89 90 91 |
# File 'lib/gocardless_pro/resources/payment.rb', line 89 def mandate @links['mandate'] end |
#payout ⇒ Object
93 94 95 |
# File 'lib/gocardless_pro/resources/payment.rb', line 93 def payout @links['payout'] end |
#subscription ⇒ Object
97 98 99 |
# File 'lib/gocardless_pro/resources/payment.rb', line 97 def subscription @links['subscription'] end |