Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_OrderProcess
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_OrderProcess
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_OrderProcess
constructor
A new instance of Html_OrderProcess.
- #writeHtml(hOrder) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_OrderProcess
Returns a new instance of Html_OrderProcess.
18 19 20 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb', line 18 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hOrder) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb', line 22 def writeHtml(hOrder) # classes used datetimeClass = Html_Datetime.new(@html) # order process - order instructions unless hOrder[:orderingInstructions].nil? @html.em('Order instructions: ') @html.div(:class => 'block') do @html.text!(hOrder[:orderingInstructions]) end end # order process - fees unless hOrder[:fees].nil? @html.em('Fees: ') @html.text!(hOrder[:fees]) @html.br end # order process - turnaround unless hOrder[:turnaround].nil? @html.em('Turnaround: ') @html.text!(hOrder[:turnaround]) @html.br end # order process - planned dateTime unless hOrder[:plannedAvailability].empty? @html.em('Planned Availability: ') dateStr = datetimeClass.writeHtml(hOrder[:plannedAvailability]) @html.text!(dateStr) end end |