Sha256: 9ee9b3ef7aaefe47b049555fb5d948da951b01e042dae4fff8314ffebcd06f95
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
require 'money_s3/parsers/base_parser' module MoneyS3 module Parsers class ParametrType include BaseParser def id at 'ID' end def nazev at 'Nazev' end def druh at 'Druh' end def typ at 'Typ' end def mj at 'MJ' end def uziv_code at 'UzivCode' end def hodnoty at 'Hodnoty' end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:id] = id if has? 'ID' hash[:nazev] = nazev if has? 'Nazev' hash[:druh] = druh if has? 'Druh' hash[:typ] = typ if has? 'Typ' hash[:mj] = mj if has? 'MJ' hash[:uziv_code] = uziv_code if has? 'UzivCode' hash[:hodnoty] = hodnoty if has? 'Hodnoty' 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/parametr_type.rb |