Sha256: 1dbfc55068c9fcfbce1477b329bed9dd4956c83197c011a56c6b2118459c7414

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

module MoneyS3
  module Parsers
    class MsgUcOsnovType < MessageType
      include ParserCore::BaseParser

      def data
        submodel_at(UcOsnovaType, 'Data')
      end

      def to_h_with_attrs
        hash = ParserCore::HashWithAttributes.new({}, attributes)

        hash[:data] = data.to_h_with_attrs if has? 'Data'

        hash
        super.merge(hash)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/msg_uc_osnov_type.rb
money_s3-0.11.0 lib/money_s3/parsers/msg_uc_osnov_type.rb