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.



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

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

Instance Method Details

#creditorObject



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

def creditor
  @links['creditor']
end

#customerObject



83
84
85
# File 'lib/gocardless_pro/resources/mandate.rb', line 83

def customer
  @links['customer']
end

#customer_bank_accountObject



87
88
89
# File 'lib/gocardless_pro/resources/mandate.rb', line 87

def 
  @links['customer_bank_account']
end

#new_mandateObject



91
92
93
# File 'lib/gocardless_pro/resources/mandate.rb', line 91

def new_mandate
  @links['new_mandate']
end