class SixSaferpay::Notification
Attributes
merchant_emails[RW]
notify_url[RW]
payer_email[RW]
Public Class Methods
new(merchant_emails: nil, payer_email: nil, notify_url: nil)
click to toggle source
# File lib/six_saferpay/models/notification.rb, line 9 def initialize(merchant_emails: nil, payer_email: nil, notify_url: nil) @merchant_emails = merchant_emails @payer_email = payer_email @notify_url = notify_url end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/notification.rb, line 15 def to_hash hash = Hash.new hash.merge!(merchant_emails: @merchant_emails) if @merchant_emails hash.merge!(payer_email: @payer_email) if @payer_email hash.merge!(notify_url: @notify_url) if @notify_url hash end
Also aliased as: to_h