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.



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

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

Instance Method Details

#customerObject



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

def customer
  @links['customer']
end

#eventObject



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

def event
  @links['event']
end

#mandateObject



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

def mandate
  @links['mandate']
end

#paymentObject



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

def payment
  @links['payment']
end

#refundObject



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

def refund
  @links['refund']
end

#subscriptionObject



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

def subscription
  @links['subscription']
end