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.
59 60 61 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 59 def initialize(links) @links = links || {} end |
Instance Method Details
#customer ⇒ Object
63 64 65 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 63 def customer @links['customer'] end |
#event ⇒ Object
67 68 69 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 67 def event @links['event'] end |
#mandate ⇒ Object
71 72 73 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 71 def mandate @links['mandate'] end |
#payment ⇒ Object
75 76 77 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 75 def payment @links['payment'] end |
#refund ⇒ Object
79 80 81 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 79 def refund @links['refund'] end |
#subscription ⇒ Object
83 84 85 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 83 def subscription @links['subscription'] end |