Sha256: 9e587e5a1bc94d45acd056eacd4e1880a7d46267d15392e75e240e18984581da

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

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

      def data
        submodel_at(CinnostType, '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_cinnost_type.rb