Class: ODDB::OdbaExporter::CompLine
- Defined in:
- ext/export/src/oddbdat.rb
Constant Summary collapse
- LENGTH =
19
Instance Method Summary collapse
-
#initialize(company) ⇒ CompLine
constructor
A new instance of CompLine.
- #structure ⇒ Object
Methods inherited from Line
Constructor Details
#initialize(company) ⇒ CompLine
Returns a new instance of CompLine.
546 547 548 549 |
# File 'ext/export/src/oddbdat.rb', line 546 def initialize(company) @company = company super end |
Instance Method Details
#structure ⇒ Object
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
# File 'ext/export/src/oddbdat.rb', line 550 def structure addr = @company.address(0) { 1 => '12', 2 => @date, 3 => @company.oid, 4 => '4', 5 => @company.ean13, 7 => @company.name, 8 => addr.address, 9 => 'CH', 10 => addr.plz, 11 => addr.city, 13 => addr.fon.first, 15 => addr.fax.first, 16 => @company.address_email, 17 => @company.url, } end |