Sha256: 3e4fe480ac4ea96f274a872c9a65b5ad3ef6854bf087e0f402368fac02fd2bbd

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

module MoneyS3
  module Parsers
    class Eshop
      include ParserCore::BaseParser

      def in_export
        at 'IN_Export'
      end

      def in_changed
        at 'IN_Changed'
      end

      def in_fak_cis
        at 'IN_FakCis'
      end

      def in_req_stor
        at 'IN_ReqStor'
      end

      def in_yes_stor
        at 'IN_YesStor'
      end

      def in_shop_id
        at 'IN_ShopID'
      end

      def in_poznamk
        at 'IN_Poznamk'
      end

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

        hash[:in_export] = in_export if has? 'IN_Export'
        hash[:in_changed] = in_changed if has? 'IN_Changed'
        hash[:in_fak_cis] = in_fak_cis if has? 'IN_FakCis'
        hash[:in_req_stor] = in_req_stor if has? 'IN_ReqStor'
        hash[:in_yes_stor] = in_yes_stor if has? 'IN_YesStor'
        hash[:in_shop_id] = in_shop_id if has? 'IN_ShopID'
        hash[:in_poznamk] = in_poznamk if has? 'IN_Poznamk'

        hash
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/eshop.rb
money_s3-0.11.0 lib/money_s3/parsers/eshop.rb