Method: OrcidClient::Notification#initialize

Defined in:
lib/orcid_client/notification.rb

#initialize(doi:, orcid:, notification_access_token:, **options) ⇒ Notification

Returns a new instance of Notification.



18
19
20
21
22
23
24
25
26
# File 'lib/orcid_client/notification.rb', line 18

def initialize(doi:, orcid:, notification_access_token:, **options)
  @doi = doi
  @orcid = orcid
  @notification_access_token = notification_access_token
  @put_code = options.fetch(:put_code, nil)
  @subject = options.fetch(:subject, nil)
  @intro = options.fetch(:intro, nil)
  @notification_host = options[:sandbox] ? 'sandbox.orcid.org' : 'orcid.org'
end