Class: SixSaferpay::PendingNotification
- Inherits:
-
Object
- Object
- SixSaferpay::PendingNotification
- Defined in:
- lib/six_saferpay/models/pending_notification.rb
Instance Attribute Summary collapse
-
#merchant_emails ⇒ Object
Returns the value of attribute merchant_emails.
-
#notify_url ⇒ Object
Returns the value of attribute notify_url.
Instance Method Summary collapse
-
#initialize(merchant_emails: nil, notify_url: nil) ⇒ PendingNotification
constructor
A new instance of PendingNotification.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(merchant_emails: nil, notify_url: nil) ⇒ PendingNotification
Returns a new instance of PendingNotification.
6 7 8 9 |
# File 'lib/six_saferpay/models/pending_notification.rb', line 6 def initialize(merchant_emails: nil, notify_url: nil) @merchant_emails = merchant_emails @notify_url = notify_url end |
Instance Attribute Details
#merchant_emails ⇒ Object
Returns the value of attribute merchant_emails.
4 5 6 |
# File 'lib/six_saferpay/models/pending_notification.rb', line 4 def merchant_emails @merchant_emails end |
#notify_url ⇒ Object
Returns the value of attribute notify_url.
4 5 6 |
# File 'lib/six_saferpay/models/pending_notification.rb', line 4 def notify_url @notify_url end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
11 12 13 14 15 16 |
# File 'lib/six_saferpay/models/pending_notification.rb', line 11 def to_hash hash = Hash.new hash.merge!(merchant_emails: @merchant_emails) if @merchant_emails hash.merge!(notify_url: @notify_url) if @notify_url hash end |