Class: ADIWG::Mdtranslator::Writers::Fgdc::OnlineOption
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Fgdc::OnlineOption
- Defined in:
- lib/adiwg/mdtranslator/writers/fgdc/classes/class_onlineOption.rb
Instance Method Summary collapse
-
#initialize(xml, hResponseObj) ⇒ OnlineOption
constructor
A new instance of OnlineOption.
- #writeXML(hOnline, inContext) ⇒ Object
Constructor Details
#initialize(xml, hResponseObj) ⇒ OnlineOption
17 18 19 20 21 |
# File 'lib/adiwg/mdtranslator/writers/fgdc/classes/class_onlineOption.rb', line 17 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj @NameSpace = ADIWG::Mdtranslator::Writers::Fgdc end |
Instance Method Details
#writeXML(hOnline, inContext) ⇒ Object
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/adiwg/mdtranslator/writers/fgdc/classes/class_onlineOption.rb', line 23 def writeXML(hOnline, inContext) # online option 6.4.2.2.1.1 (computer) - computer contact information (compound) @xml.tag!('computer') do # online option 6.4.2.2.1.1.1 (networka) - network address (compound) @xml.tag!('networka') do # online option 6.4.2.2.1.1.1.1 (networkr) - network resource name (required) # <- onlineOption.olResURI unless hOnline[:olResURI].nil? @xml.tag!('networkr', hOnline[:olResURI]) end if hOnline[:olResURI].nil? @NameSpace.issueWarning(130,'networkr', 'distribution') end end # online option 6.4.2.2.1.1.2 (dialinst) - dial-up instructions # not supporting this section - no longer used # dial-up 6.4.2.2.1.1.2.1 (lowbps) - lowest bits per second # dial-up 6.4.2.2.1.1.2.2 (highbps) - highest bits per second # dial-up 6.4.2.2.1.1.2.3 (numdata) - number of data bits # dial-up 6.4.2.2.1.1.2.4 (numstop) - number of stop bits # dial-up 6.4.2.2.1.1.2.5 (parity) - parity (odd, even, none) # dial-up 6.4.2.2.1.1.2.6 (compress) - compression support # dial-up 6.4.2.2.1.1.2.7 (dialtel) - dial-up number # dial-up 6.4.2.2.1.1.2.8 (dialfile) - file name end # online option 6.4.2.2.1.2 (accinstr) - access instructions # <- onlineOption.olResProtocol unless hOnline[:olResProtocol].nil? @xml.tag!('accinstr', hOnline[:olResProtocol]) end if hOnline[:olResProtocol].nil? @xml.tag!('accinstr') end # online option 6.4.2.2.1.3 (oncomp) - distribution computer make and operating system # <- onlineOption.olResDesc unless hOnline[:olResDesc].nil? @xml.tag!('oncomp', hOnline[:olResDesc]) end if hOnline[:olResDesc].nil? @xml.tag!('oncomp') end end |