Sha256: d182c51a5cc8d9505b42ff8d2c3b287096872085dc8e5665e60c44a64fd22ba9

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class TelefonType
      include BaseParser

      def pred
        at 'Pred'
      end

      def cislo
        at 'Cislo'
      end

      def klap
        at 'Klap'
      end

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

        hash[:pred] = pred if has? 'Pred'
        hash[:cislo] = cislo if has? 'Cislo'
        hash[:klap] = klap if has? 'Klap'

        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/telefon_type.rb