Class: GoCardlessPro::Resources::CustomerNotification::Links

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

Instance Method Summary collapse

Constructor Details

#initialize(links) ⇒ Links

Returns a new instance of Links.



59
60
61
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 59

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

Instance Method Details

#customerObject



63
64
65
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 63

def customer
  @links['customer']
end

#eventObject



67
68
69
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 67

def event
  @links['event']
end

#mandateObject



71
72
73
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 71

def mandate
  @links['mandate']
end

#paymentObject



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

def payment
  @links['payment']
end

#refundObject



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

def refund
  @links['refund']
end

#subscriptionObject



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

def subscription
  @links['subscription']
end