Method: MissingText::Writer#initialize
- Defined in:
- lib/missing_text/writer.rb
#initialize(options = {}) ⇒ Writer
Returns a new instance of Writer.
7 8 9 10 11 12 |
# File 'lib/missing_text/writer.rb', line 7 def initialize( = {}) .each do |key, value| self.send("#{key}=", value) end self.batch_id = MissingText::Batch.last.id end |