Class: Document::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/document/report.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReport

Returns a new instance of Report.



8
9
10
# File 'lib/document/report.rb', line 8

def initialize
  	@processors = Array.new
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/document/report.rb', line 6

def id
  @id
end

#processorsObject (readonly)

Returns the value of attribute processors.



5
6
7
# File 'lib/document/report.rb', line 5

def processors
  @processors
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/document/report.rb', line 6

def status
  @status
end

Class Method Details

.from_document(document) ⇒ Object



16
17
18
# File 'lib/document/report.rb', line 16

def self.from_document(document)
	Reader.read(document)  
end

.from_xml(xml) ⇒ Object



12
13
14
# File 'lib/document/report.rb', line 12

def self.from_xml(xml)
	Reader.read(xml)  
end