Class: GoCardlessPro::Resources::Mandate::Links
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::Mandate::Links
- Defined in:
- lib/gocardless_pro/resources/mandate.rb
Instance Method Summary collapse
- #creditor ⇒ Object
- #customer ⇒ Object
- #customer_bank_account ⇒ Object
-
#initialize(links) ⇒ Links
constructor
A new instance of Links.
- #new_mandate ⇒ Object
Constructor Details
#initialize(links) ⇒ Links
Returns a new instance of Links.
75 76 77 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 75 def initialize(links) @links = links || {} end |
Instance Method Details
#creditor ⇒ Object
79 80 81 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 79 def creditor @links['creditor'] end |
#customer ⇒ Object
83 84 85 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 83 def customer @links['customer'] end |
#customer_bank_account ⇒ Object
87 88 89 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 87 def customer_bank_account @links['customer_bank_account'] end |
#new_mandate ⇒ Object
91 92 93 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 91 def new_mandate @links['new_mandate'] end |