class Pohoda::Parsers::Lst::ListVersionTypeTax

Public Instance Methods

import_data() click to toggle source
# File lib/pohoda/parsers/lst/list_version_type_tax.rb, line 11
def import_data
  at 'lst:importData'
end
import_data_attributes() click to toggle source
# File lib/pohoda/parsers/lst/list_version_type_tax.rb, line 15
def import_data_attributes
  attributes_at 'lst:importData'
end
import_details() click to toggle source
# File lib/pohoda/parsers/lst/list_version_type_tax.rb, line 7
def import_details
  array_of_at(Rdc::DetailType, ['lst:importDetails', 'rdc:detail'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/lst/list_version_type_tax.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:import_details] = import_details.map(&:to_h) if has? 'lst:importDetails'
  hash[:import_data] = import_data if has? 'lst:importData'
  hash[:import_data_attributes] = import_data_attributes if has? 'lst:importData'

  hash
end