module Uphold::Endpoints
Constants
- AUTH
- CANCEL_TRANSACTION
- CARD
- CARD_PRIVATE_TRANSACTIONS
- COMMIT_TRANSACTION
- CREATE_AND_COMMIT_TRANSACTION
- LEDGER
- PUBLIC_TRANSACTIONS
- RESEND_TRANSACTION
- STATS
- TICKER
- USER
- USER_CONTACTS
- USER_PHONES
- USER_PRIVATE_TRANSACTIONS
Public Class Methods
with_placeholders(endpoint, substitutions = {})
click to toggle source
# File lib/uphold/api/endpoints.rb, line 19 def self.with_placeholders(endpoint, substitutions = {}) new_endpoint = endpoint.dup substitutions.each_pair do |placeholder, substitute| new_endpoint.gsub!(placeholder, substitute) end new_endpoint end