Sha256: ad0f94f03b3802ff4e9a697219efd685c2eab0a9397b7eb37b5bde0722c05dd8

Contents?: true

Size: 437 Bytes

Versions: 7

Compression:

Stored size: 437 Bytes

Contents

module MoneyS3
  module Parsers
    class Vlajky
      include ParserCore::BaseParser

      def global
        submodel_at(VlajkaType, 'Global')
      end

      def user
        submodel_at(VlajkaType, 'User')
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:global] = global.to_h if has? 'Global'
        hash[:user] = user.to_h if has? 'User'

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/vlajky.rb
money_s3-2.4.0 lib/money_s3/parsers/vlajky.rb
money_s3-2.3.0 lib/money_s3/parsers/vlajky.rb
money_s3-2.2.0 lib/money_s3/parsers/vlajky.rb
money_s3-2.1.0 lib/money_s3/parsers/vlajky.rb
money_s3-2.0.0 lib/money_s3/parsers/vlajky.rb
money_s3-1.0.0 lib/money_s3/parsers/vlajky.rb