Class: GoCardlessPro::Resources::CustomerNotification::Links
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::CustomerNotification::Links
- Defined in:
- lib/gocardless_pro/resources/customer_notification.rb
Instance Method Summary collapse
- #customer ⇒ Object
- #event ⇒ Object
-
#initialize(links) ⇒ Links
constructor
A new instance of Links.
- #mandate ⇒ Object
- #payment ⇒ Object
- #refund ⇒ Object
- #subscription ⇒ Object
Constructor Details
#initialize(links) ⇒ Links
Returns a new instance of Links.
65 66 67 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 65 def initialize(links) @links = links || {} end |
Instance Method Details
#customer ⇒ Object
69 70 71 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 69 def customer @links['customer'] end |
#event ⇒ Object
73 74 75 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 73 def event @links['event'] end |
#mandate ⇒ Object
77 78 79 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 77 def mandate @links['mandate'] end |
#payment ⇒ Object
81 82 83 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 81 def payment @links['payment'] end |
#refund ⇒ Object
85 86 87 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 85 def refund @links['refund'] end |
#subscription ⇒ Object
89 90 91 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 89 def subscription @links['subscription'] end |