Sha256: cd81117bccab0fcd59f2b1a29a2c33ccde139e786c867a72d555911bb2840c0f

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/vazba_type'

module MoneyS3
  module Parsers
    class SeznamVazeb
      include BaseParser

      def vazba
        submodel_at(VazbaType, 'Vazba')
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:vazba] = vazba.to_h if has? 'Vazba'

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/seznam_vazeb.rb