Sha256: 18fd49def141be08ff6f28e1f05d213a72677d5d7efd1cb5813097d5c2b5c8bc

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require 'money_s3/base_element'
require 'money_s3/mena_type'

module MoneyS3
  class ValutyHraz
    include BaseElement

    def castka
      at :Castka
    end

    def mena
      submodel_at(MenaType, :Mena)
    end

    def to_h
      { castka: castka,
        mena: mena.to_h
      }.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/valuty_hraz.rb