lib/money_s3/parsers/stredisko.rb in money_s3-0.4.0 vs lib/money_s3/parsers/stredisko.rb in money_s3-0.5.0
- old
+ new
@@ -16,13 +16,16 @@
def pozn
at :Pozn
end
def to_h
- { zkrat: zkrat,
- nazev: nazev,
- pozn: pozn
- }.delete_if { |k, v| v.nil? || v.empty? }
+ hash = {}
+
+ hash[:zkrat] = zkrat if raw.key? :Zkrat
+ hash[:nazev] = nazev if raw.key? :Nazev
+ hash[:pozn] = pozn if raw.key? :Pozn
+
+ hash
end
end
end
end
\ No newline at end of file