class Pohoda::Parsers::Pre::PrevodkaType
Public Instance Methods
prevodka_detail()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_type.rb, line 11 def prevodka_detail array_of_at(Pre::PrevodkaItemType, ['pre:prevodkaDetail', 'pre:prevodkaItem']) end
prevodka_header()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_type.rb, line 7 def prevodka_header submodel_at(Pre::PrevodkaHeaderType, 'pre:prevodkaHeader') end
print()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_type.rb, line 15 def print array_of_at(Prn::PrinterSettingsType, ['pre:print', 'prn:printerSettings']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_type.rb, line 19 def to_h hash = {} hash[:attributes] = attributes hash[:prevodka_header] = prevodka_header.to_h if has? 'pre:prevodkaHeader' hash[:prevodka_detail] = prevodka_detail.map(&:to_h) if has? 'pre:prevodkaDetail' hash[:print] = print.map(&:to_h) if has? 'pre:print' hash end