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.
62 63 64 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 62 def initialize(links) @links = links || {} end |
Instance Method Details
#customer ⇒ Object
66 67 68 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 66 def customer @links['customer'] end |
#event ⇒ Object
70 71 72 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 70 def event @links['event'] end |
#mandate ⇒ Object
74 75 76 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 74 def mandate @links['mandate'] end |
#payment ⇒ Object
78 79 80 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 78 def payment @links['payment'] end |
#refund ⇒ Object
82 83 84 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 82 def refund @links['refund'] end |
#subscription ⇒ Object
86 87 88 |
# File 'lib/gocardless_pro/resources/customer_notification.rb', line 86 def subscription @links['subscription'] end |