class Pohoda::Parsers::Vyd::VydejkaType
Public Instance Methods
links()
click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_type.rb, line 7 def links array_of_at(Typ::LinkElemetType, ['vyd:links', 'typ:link']) end
print()
click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_type.rb, line 23 def print array_of_at(Prn::PrinterSettingsType, ['vyd:print', 'prn:printerSettings']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_type.rb, line 27 def to_h hash = {} hash[:attributes] = attributes hash[:links] = links.map(&:to_h) if has? 'vyd:links' hash[:vydejka_header] = vydejka_header.to_h if has? 'vyd:vydejkaHeader' hash[:vydejka_detail] = vydejka_detail.map(&:to_h) if has? 'vyd:vydejkaDetail' hash[:vydejka_summary] = vydejka_summary.to_h if has? 'vyd:vydejkaSummary' hash[:print] = print.map(&:to_h) if has? 'vyd:print' hash end
vydejka_detail()
click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_type.rb, line 15 def vydejka_detail array_of_at(Vyd::VydejkaItemType, ['vyd:vydejkaDetail', 'vyd:vydejkaItem']) end
vydejka_header()
click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_type.rb, line 11 def vydejka_header submodel_at(Vyd::VydejkaHeaderType, 'vyd:vydejkaHeader') end
vydejka_summary()
click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_type.rb, line 19 def vydejka_summary submodel_at(Vyd::VydejkaSummaryType, 'vyd:vydejkaSummary') end