module Bitreserve::Endpoints

Constants

AUTH
CANCEL_TRANSACTION
CARD
CARD_PRIVATE_TRANSACTIONS
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/bitreserve/api/endpoints.rb, line 18
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