Sha256: d74d8341d87a3fe052bc1644873def15e1a831185e9acbda3d11e60d6a17b915

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module YandexCheckout
  module Entity
    class Amount
      extend  Dry::Initializer
      extend  YandexCheckout::Callable
      include YandexCheckout::Optional

      option :value, proc(&:to_f), optional: true
      option :currency, proc(&:to_s), optional: true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yandex-checkout-0.1.1 lib/yandex-checkout/entity/amount.rb