class Pohoda::Parsers::Con::ContractType
Public Instance Methods
contract_desc()
click to toggle source
# File lib/pohoda/parsers/con/contract_type.rb, line 7 def contract_desc submodel_at(Con::ContractDescType, 'con:contractDesc') end
print()
click to toggle source
# File lib/pohoda/parsers/con/contract_type.rb, line 11 def print array_of_at(Prn::PrinterSettingsType, ['con:print', 'prn:printerSettings']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/con/contract_type.rb, line 15 def to_h hash = {} hash[:attributes] = attributes hash[:contract_desc] = contract_desc.to_h if has? 'con:contractDesc' hash[:print] = print.map(&:to_h) if has? 'con:print' hash end