Sha256: e769744166953d4902d2caf6f70f86d0f073b836713f16bffca38b7fa60d6d74

Contents?: true

Size: 267 Bytes

Versions: 7

Compression:

Stored size: 267 Bytes

Contents

class DoiWorker
  def queue_name
    :doi
  end

  attr_accessor :generic_file_id

  def initialize(generic_file_id)
    self.generic_file_id = generic_file_id
  end

  def run
    mint_doi = MintDoi.new(generic_file_id)
    mint_doi.create_or_retrieve_doi
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
curate-0.3.2 app/workers/doi_worker.rb
curate-0.3.1 app/workers/doi_worker.rb
curate-0.2.0 app/workers/doi_worker.rb
curate-0.1.3 app/workers/doi_worker.rb
curate-0.1.2 app/workers/doi_worker.rb
curate-0.1.1 app/workers/doi_worker.rb
curate-0.1.0 app/workers/doi_worker.rb