Sha256: 21ea708bd5612809e68a0a4637686b775ac610726e031390c1e79f488658a7b3
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/parametr_type' module MoneyS3 module Parsers class ParametrKartaType include BaseParser def poradi at 'Poradi' end def value at 'Value' end def parametr submodel_at(ParametrType, 'Parametr') end def to_h_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:poradi] = poradi if has? 'Poradi' hash[:value] = value if has? 'Value' hash[:parametr] = parametr.to_h_with_attrs if has? 'Parametr' hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems