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.



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

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

Instance Method Details

#customerObject



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

def customer
  @links['customer']
end

#eventObject



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

def event
  @links['event']
end

#mandateObject



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

def mandate
  @links['mandate']
end

#paymentObject



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

def payment
  @links['payment']
end

#refundObject



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

def refund
  @links['refund']
end

#subscriptionObject



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

def subscription
  @links['subscription']
end