Class: SixSaferpay::PendingNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/six_saferpay/models/pending_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_emailsObject

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_urlObject

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_hashObject 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