Sha256: 8e73cd9ee807f2c7bf8717cc6081be169d2813263c82cc303e68b9e1e63c0765

Contents?: true

Size: 1016 Bytes

Versions: 4

Compression:

Stored size: 1016 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/ekategorie_zasoba_type'

module MoneyS3
  module Parsers
    class EkategorieZasobaType
      include BaseParser

      def id
        at 'ID'
      end

      def name
        at 'Name'
      end

      def descript
        at 'Descript'
      end

      def poznamka
        at 'Poznamka'
      end

      def changed
        at 'Changed'
      end

      def public
        at 'Public'
      end

      def parent
        submodel_at(EkategorieZasobaType, 'Parent')
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:id] = id if has? 'ID'
        hash[:name] = name if has? 'Name'
        hash[:descript] = descript if has? 'Descript'
        hash[:poznamka] = poznamka if has? 'Poznamka'
        hash[:changed] = changed if has? 'Changed'
        hash[:public] = public if has? 'Public'
        hash[:parent] = parent.to_h_with_attrs if has? 'Parent'

        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/ekategorie_zasoba_type.rb
money_s3-0.9.0 lib/money_s3/parsers/ekategorie_zasoba_type.rb
money_s3-0.8.0 lib/money_s3/parsers/ekategorie_zasoba_type.rb
money_s3-0.7.0 lib/money_s3/parsers/ekategorie_zasoba_type.rb