class Pohoda::Parsers::Vyd::VydejkaType

Public Instance Methods

print() click to toggle source
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