Sha256: 04ccfa5199087c14152636afd207f99b53347602e2e7b1e4246ceef60deb15bb

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

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

      def data
        submodel_at(UcOsnovaType, 'Data')
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

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

        hash
        super.merge(hash)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-1.0.0 lib/money_s3/parsers/msg_uc_osnov_type.rb