Sha256: 31c81aae468efc31d4aed46d6e6624eda6e59668cf363aff2b0ef62595b0a40e

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

module StellarClient
  class DepositRequest

    include APIClientBase::Request.module

    BODY_ATTRS = %i[
      account
      asset_code
      memo
      memo_type
      email_address
      type
    ]
    attribute :account, String
    attribute :asset_code, String
    attribute :memo, String
    attribute :memo_type, String
    attribute :email_address, String
    attribute :type, String

    private

    def path
      "/deposit"
    end

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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stellar_client-0.8.0 lib/stellar_client/requests/deposit_request.rb
stellar_client-0.7.0 lib/stellar_client/requests/deposit_request.rb
stellar_client-0.6.1 lib/stellar_client/requests/deposit_request.rb