Sha256: a277c3cb84ddb9b9a3cde7319197aa64192d9efdf73e51d85e2af51ab7d25480
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/kusovnik_type' require 'money_s3/parsers/vzor_komponenta_type' module MoneyS3 module Parsers class Reference include BaseParser def typ_kusovnik submodel_at(KusovnikType, :TypKusovnik) end def vzor submodel_at(VzorKomponentaType, :Vzor) end def to_h hash = {} hash[:typ_kusovnik] = typ_kusovnik.to_h if raw.key? :TypKusovnik hash[:vzor] = vzor.to_h if raw.key? :Vzor hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.5.0 | lib/money_s3/parsers/reference.rb |