Sha256: 351eaa4ffb29211c6e5bee2c67768fe57f901686401825c1e861f48da27f8ffb
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/eet_type' module MoneyS3 module Parsers class DoklRefType 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/dokl_ref_type.rb |