Sha256: 54ec44047a0ada32adcfda8b6585009133719f650a8a4a027cdfcb6bae051693
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/eet_type' module MoneyS3 module Parsers class DokladHraz include BaseParser def id_dokladu at 'IDDokladu' end def cislo_dokladu at 'CisloDokladu' end def druh_dokladu at 'DruhDokladu' end def rok at 'Rok' end def eet submodel_at(EETType, 'EET') end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:id_dokladu] = id_dokladu if has? 'IDDokladu' hash[:cislo_dokladu] = cislo_dokladu if has? 'CisloDokladu' hash[:druh_dokladu] = druh_dokladu if has? 'DruhDokladu' hash[:rok] = rok if has? 'Rok' hash[:eet] = eet.to_h if has? 'EET' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.6.0 | lib/money_s3/parsers/doklad_hraz.rb |