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.
- #mandate ⇒ Object
- #payout ⇒ Object
- #subscription ⇒ Object
Constructor Details
#initialize(links) ⇒ Links
Returns a new instance of Links.
70 71 72 |
# File 'lib/gocardless_pro/resources/payment.rb', line 70 def initialize(links) @links = links || {} end |
Instance Method Details
#creditor ⇒ Object
74 75 76 |
# File 'lib/gocardless_pro/resources/payment.rb', line 74 def creditor @links['creditor'] end |
#mandate ⇒ Object
78 79 80 |
# File 'lib/gocardless_pro/resources/payment.rb', line 78 def mandate @links['mandate'] end |
#payout ⇒ Object
82 83 84 |
# File 'lib/gocardless_pro/resources/payment.rb', line 82 def payout @links['payout'] end |
#subscription ⇒ Object
86 87 88 |
# File 'lib/gocardless_pro/resources/payment.rb', line 86 def subscription @links['subscription'] end |