Sha256: c11ea463c7550fa12ed3f3d50ffd23c1b7ffba4700e43fad4ed2e9c1df0ebf45

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 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_with_attrs
        hash = HashWithAttributes.new({}, 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

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/telefon_type.rb
money_s3-0.9.0 lib/money_s3/parsers/telefon_type.rb
money_s3-0.8.0 lib/money_s3/parsers/telefon_type.rb
money_s3-0.7.0 lib/money_s3/parsers/telefon_type.rb