Sha256: d3dfbd4cc6a48fb275404f82da690652905a090a97dd256914cc06ac6ae202b1

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class StavZasobyType
      include BaseParser

      def zasoba
        at 'Zasoba'
      end

      def rezervace
        at 'Rezervace'
      end

      def objednano
        at 'Objednano'
      end

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

        hash[:zasoba] = zasoba if has? 'Zasoba'
        hash[:rezervace] = rezervace if has? 'Rezervace'
        hash[:objednano] = objednano if has? 'Objednano'

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