Class: Connector::ExcelWriteConnector

Inherits:
Object
  • Object
show all
Defined in:
lib/mylookup/connector.rb

Direct Known Subclasses

FileWriter::Excel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ExcelWriteConnector

Returns a new instance of ExcelWriteConnector.



58
59
60
61
62
# File 'lib/mylookup/connector.rb', line 58

def initialize(path)
    @path = path
    @wb = RubyXL::Workbook.new
    @ws = @wb.worksheets[0]
end

Instance Attribute Details

#wbObject

Returns the value of attribute wb.



56
57
58
# File 'lib/mylookup/connector.rb', line 56

def wb
  @wb
end

#wsObject

Returns the value of attribute ws.



56
57
58
# File 'lib/mylookup/connector.rb', line 56

def ws
  @ws
end