Class: Connector::ExcelWriteConnector
- Inherits:
-
Object
- Object
- Connector::ExcelWriteConnector
- Defined in:
- lib/mylookup/connector.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#wb ⇒ Object
Returns the value of attribute wb.
-
#ws ⇒ Object
Returns the value of attribute ws.
Instance Method Summary collapse
-
#initialize(path) ⇒ ExcelWriteConnector
constructor
A new instance of ExcelWriteConnector.
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
#wb ⇒ Object
Returns the value of attribute wb.
56 57 58 |
# File 'lib/mylookup/connector.rb', line 56 def wb @wb end |
#ws ⇒ Object
Returns the value of attribute ws.
56 57 58 |
# File 'lib/mylookup/connector.rb', line 56 def ws @ws end |