Method: Orcid::ProfileStatus#initialize
- Defined in:
- app/models/orcid/profile_status.rb
#initialize(user, collaborators = {}) {|callback_handler| ... } ⇒ ProfileStatus
Returns a new instance of ProfileStatus.
24 25 26 27 28 29 30 |
# File 'app/models/orcid/profile_status.rb', line 24 def initialize(user, collaborators = {}) @user = user @profile_finder = collaborators.fetch(:profile_finder) { default_profile_finder } @request_finder = collaborators.fetch(:request_finder) { default_request_finder } @callback_handler = collaborators.fetch(:callback_handler) { default_callback_handler } yield(callback_handler) if block_given? end |