Sha256: b5607c0a5d84f0f5472e3d1f1b63f7b6810da3c33c20870638f12df372bd6b65

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

module StellarClient
  class GetFeesRequest

    include APIClientBase::Request.module

    BODY_ATTRS = %i[
      amount
      asset_code
      operation
      type
    ]
    attribute :amount, BigDecimal
    attribute :asset_code, String
    attribute :operation, String
    attribute :type, String

    private

    def path
      "/fee"
    end

    def params
      BODY_ATTRS.each_with_object({}) do |attr, hash|
        hash[attr] = send(attr)
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stellar_client-0.8.0 lib/stellar_client/requests/get_fees_request.rb
stellar_client-0.7.0 lib/stellar_client/requests/get_fees_request.rb