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.
60 61 62 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 60 def initialize(links) @links = links || {} end |
Instance Method Details
#creditor ⇒ Object
64 65 66 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 64 def creditor @links['creditor'] end |
#customer ⇒ Object
68 69 70 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 68 def customer @links['customer'] end |
#customer_bank_account ⇒ Object
72 73 74 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 72 def customer_bank_account @links['customer_bank_account'] end |
#new_mandate ⇒ Object
76 77 78 |
# File 'lib/gocardless_pro/resources/mandate.rb', line 76 def new_mandate @links['new_mandate'] end |