Sha256: 59014304b9b9d35af50531d6bd54af119ec2cd43a749defd4f178a18c26a5b12

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

module Yookassa
  module Entity
    class Amount
      extend  Dry::Initializer
      extend  Yookassa::Callable
      include Yookassa::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
yookassa-0.1.0 lib/yookassa/entity/amount.rb