Class: MoneyS3::Parsers::SeznamKmKarta

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

Instance Method Summary collapse

Instance Method Details

#km_kartaObject



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

def km_karta
  array_of_at(KmKarta, ['KmKarta'])
end

#to_hObject



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

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

  hash[:km_karta] = km_karta.map(&:to_h) if has? 'KmKarta'

  hash
end