Sha256: 9d96e58b21c71ffda13e0f1255a06c7729314e290aafd7d538f57cb5718c9977

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/parametr_type'

module MoneyS3
  module Parsers
    class ParametrKartaType
      include BaseParser

      def poradi
        at :Poradi
      end

      def value
        at :Value
      end

      def parametr
        submodel_at(ParametrType, :Parametr)
      end

      def to_h
        hash = {}

        hash[:poradi] = poradi if raw.key? :Poradi
        hash[:value] = value if raw.key? :Value
        hash[:parametr] = parametr.to_h if raw.key? :Parametr

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/parsers/parametr_karta_type.rb