Class: GoCardlessPro::Resources::Payment::Links

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

Instance Method Summary collapse

Constructor Details

#initialize(links) ⇒ Links

Returns a new instance of Links.



61
62
63
# File 'lib/gocardless_pro/resources/payment.rb', line 61

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

Instance Method Details

#creditorObject



65
66
67
# File 'lib/gocardless_pro/resources/payment.rb', line 65

def creditor
  @links['creditor']
end

#instalment_scheduleObject



69
70
71
# File 'lib/gocardless_pro/resources/payment.rb', line 69

def instalment_schedule
  @links['instalment_schedule']
end

#mandateObject



73
74
75
# File 'lib/gocardless_pro/resources/payment.rb', line 73

def mandate
  @links['mandate']
end

#payoutObject



77
78
79
# File 'lib/gocardless_pro/resources/payment.rb', line 77

def payout
  @links['payout']
end

#subscriptionObject



81
82
83
# File 'lib/gocardless_pro/resources/payment.rb', line 81

def subscription
  @links['subscription']
end