Method: Orcid::Remote::ProfileCreationService#initialize
- Defined in:
- app/services/orcid/remote/profile_creation_service.rb
#initialize(config = {}, &callback_config) ⇒ ProfileCreationService
Returns a new instance of ProfileCreationService.
13 14 15 16 17 18 |
# File 'app/services/orcid/remote/profile_creation_service.rb', line 13 def initialize(config = {}, &callback_config) super(&callback_config) @token = config.fetch(:token) { default_token } @path = config.fetch(:path) { 'v1.1/orcid-profile' } @headers = config.fetch(:headers) { default_headers } end |