Sha256: 0d3fa81441d467d89ed26a2da8de717212409b3e85fdbd24394da469f739f189

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

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

      def data
        submodel_at(PredkontaceType, '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_predkontace_type.rb
money_s3-0.11.0 lib/money_s3/parsers/msg_predkontace_type.rb