Sha256: f13cc7dc650a63dcb83778dedaaf00468b5bc8e610d0af6514436b5b986b95bb

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 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
      [Addressable::URI.parse(host).path, "/deposit"].join
    end

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar_client-0.6.0 lib/stellar_client/requests/deposit_request.rb