Sha256: 66286ec1ea36c250c4aabd2e1585a9a9c22d6f5afed67f653ecea511620b8a95

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class AdresaType
      include BaseParser

      def ulice
        at :Ulice
      end

      def misto
        at :Misto
      end

      def psc
        at :PSC
      end

      def stat
        at :Stat
      end

      def kod_statu
        at :KodStatu
      end

      def to_h
        hash = {}

        hash[:ulice] = ulice if raw.key? :Ulice
        hash[:misto] = misto if raw.key? :Misto
        hash[:psc] = psc if raw.key? :PSC
        hash[:stat] = stat if raw.key? :Stat
        hash[:kod_statu] = kod_statu if raw.key? :KodStatu

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/parsers/adresa_type.rb