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.



62
63
64
# File 'lib/gocardless_pro/resources/mandate.rb', line 62

def initialize(links)
  @links = links || {}
end

Instance Method Details

#creditorObject



66
67
68
# File 'lib/gocardless_pro/resources/mandate.rb', line 66

def creditor
  @links['creditor']
end

#customerObject



70
71
72
# File 'lib/gocardless_pro/resources/mandate.rb', line 70

def customer
  @links['customer']
end

#customer_bank_accountObject



74
75
76
# File 'lib/gocardless_pro/resources/mandate.rb', line 74

def 
  @links['customer_bank_account']
end

#new_mandateObject



78
79
80
# File 'lib/gocardless_pro/resources/mandate.rb', line 78

def new_mandate
  @links['new_mandate']
end