Sha256: adadf5e9771ad616bc8e5d32f20ca44e9c19e56e447e9e984b11bf0129f91871

Contents?: true

Size: 682 Bytes

Versions: 1

Compression:

Stored size: 682 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class ParametrType
      include BaseParser

      def id
        at :ID
      end

      def nazev
        at :Nazev
      end

      def druh
        at :Druh
      end

      def typ
        at :Typ
      end

      def mj
        at :MJ
      end

      def uziv_code
        at :UzivCode
      end

      def hodnoty
        at :Hodnoty
      end

      def to_h
        { id: id,
          nazev: nazev,
          druh: druh,
          typ: typ,
          mj: mj,
          uziv_code: uziv_code,
          hodnoty: hodnoty
        }.delete_if { |k, v| v.nil? || v.empty? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/parametr_type.rb