Sha256: ace2ef6248e523c229828e9d8f99e8169fbbb1f2e090347376da0fd9e926d1d5

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

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

      def data
        submodel_at(StrediskoType, '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_stredisko_type.rb
money_s3-0.11.0 lib/money_s3/parsers/msg_stredisko_type.rb