Sha256: 5fc97afca1e0da514b036df85174a3ca6f26d8c08251e0a86d0bde18386e8621
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/mena_type' module MoneyS3 module Parsers class CenovaHladina include BaseParser def zkrat at 'Zkrat' end def nazev at 'Nazev' end def pozn at 'Pozn' end def skup at 'Skup' end def ceny at 'Ceny' end def mena submodel_at(MenaType, 'Mena') end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:zkrat] = zkrat if has? 'Zkrat' hash[:nazev] = nazev if has? 'Nazev' hash[:pozn] = pozn if has? 'Pozn' hash[:skup] = skup if has? 'Skup' hash[:ceny] = ceny if has? 'Ceny' hash[:mena] = mena.to_h if has? 'Mena' 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/cenova_hladina.rb |