Sha256: 924ae29c99ce8bf04f1966d2b143df2a01641ea8f572f7f4d8d6485fd42a618b

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

require 'money_s3/base_element'

module MoneyS3
  class MenaType
    include BaseElement

    def kod
      at :Kod
    end

    def mnozstvi
      at :Mnozstvi
    end

    def kurs
      at :Kurs
    end

    def to_h
      { kod: kod,
        mnozstvi: mnozstvi,
        kurs: kurs
      }.delete_if { |k, v| v.nil? || v.empty? }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.3.0 lib/money_s3/mena_type.rb