Class: MoneyS3::Parsers::SeznamDLVyd

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/seznam_dl_vyd.rb

Instance Method Summary collapse

Instance Method Details

#dl_vydObject



6
7
8
# File 'lib/money_s3/parsers/seznam_dl_vyd.rb', line 6

def dl_vyd
  array_of_at(DLVyd, ['DLVyd'])
end

#to_hObject



10
11
12
13
14
15
16
17
# File 'lib/money_s3/parsers/seznam_dl_vyd.rb', line 10

def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:dl_vyd] = dl_vyd.map(&:to_h) if has? 'DLVyd'

  hash
end