Class: ODDB::TestFachinfoWriter::StubFachinfoDocument

Inherits:
Object
  • Object
show all
Defined in:
ext/fipdf/test/fachinfo_writer_test.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubFachinfoDocument) initialize

A new instance of StubFachinfoDocument



142
143
144
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 142

def initialize
  @substance_names = []
end

Instance Attribute Details

- (Object) chapters

Returns the value of attribute chapters



141
142
143
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 141

def chapters
  @chapters
end

- (Object) company_name

Returns the value of attribute company_name



141
142
143
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 141

def company_name
  @company_name
end

- (Object) first_chapter

Returns the value of attribute first_chapter



141
142
143
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 141

def first_chapter
  @chapters.first
end

- (Object) generic_type

Returns the value of attribute generic_type



141
142
143
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 141

def generic_type
  @generic_type
end

- (Object) name

Returns the value of attribute name



141
142
143
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 141

def name
  @name
end

- (Object) substance_names

Returns the value of attribute substance_names



141
142
143
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 141

def substance_names
  @substance_names
end

Instance Method Details

- (Object) each_chapter(&block)



145
146
147
# File 'ext/fipdf/test/fachinfo_writer_test.rb', line 145

def each_chapter(&block)
  @chapters.each(&block)
end