Class: SequenceServer::Report

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/sequenceserver/report.rb

Overview

Create report for the given job.

Report is a generic superclass. Programs, like BLAST, must implement their own report subclass.

Direct Known Subclasses

BLAST::Report

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ Report

Returns a new instance of Report.



20
21
22
23
# File 'lib/sequenceserver/report.rb', line 20

def initialize(job)
  @job = job
  yield if block_given?
end

Instance Attribute Details

#jobObject (readonly)

Returns the value of attribute job.



25
26
27
# File 'lib/sequenceserver/report.rb', line 25

def job
  @job
end

Class Method Details

.generate(job) ⇒ Object



10
11
12
# File 'lib/sequenceserver/report.rb', line 10

def generate(job)
  BLAST::Report.new(job)
end