Class: GoCardlessPro::Resources::Mandate::Links

Inherits:
Object
  • Object
show all
Defined in:
lib/gocardless_pro/resources/mandate.rb

Instance Method Summary collapse

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

#creditorObject



64
65
66
# File 'lib/gocardless_pro/resources/mandate.rb', line 64

def creditor
  @links['creditor']
end

#customerObject



68
69
70
# File 'lib/gocardless_pro/resources/mandate.rb', line 68

def customer
  @links['customer']
end

#customer_bank_accountObject



72
73
74
# File 'lib/gocardless_pro/resources/mandate.rb', line 72

def 
  @links['customer_bank_account']
end

#new_mandateObject



76
77
78
# File 'lib/gocardless_pro/resources/mandate.rb', line 76

def new_mandate
  @links['new_mandate']
end