class Pohoda::Parsers::Vyr::VyrobaType

Public Instance Methods

print() click to toggle source
to_h() click to toggle source
# File lib/pohoda/parsers/vyr/vyroba_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:vyroba_header] = vyroba_header.to_h if has? 'vyr:vyrobaHeader'
  hash[:vyroba_detail] = vyroba_detail.map(&:to_h) if has? 'vyr:vyrobaDetail'
  hash[:print] = print.map(&:to_h) if has? 'vyr:print'

  hash
end
vyroba_detail() click to toggle source
# File lib/pohoda/parsers/vyr/vyroba_type.rb, line 11
def vyroba_detail
  array_of_at(Vyr::VyrobaItemType, ['vyr:vyrobaDetail', 'vyr:vyrobaItem'])
end
vyroba_header() click to toggle source
# File lib/pohoda/parsers/vyr/vyroba_type.rb, line 7
def vyroba_header
  submodel_at(Vyr::VyrobaHeaderType, 'vyr:vyrobaHeader')
end