class Pohoda::Parsers::Vyd::VydejkaDetailType

Public Instance Methods

to_h() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_detail_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:vydejka_item] = vydejka_item.map(&:to_h) if has? 'vyd:vydejkaItem'

  hash
end
vydejka_item() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_detail_type.rb, line 7
def vydejka_item
  array_of_at(Vyd::VydejkaItemType, ['vyd:vydejkaItem'])
end