class Payjp::Card

Public Class Methods

retrieve(_id, _opts = nil) click to toggle source
# File lib/payjp/card.rb, line 14
def self.retrieve(_id, _opts = nil)
  raise NotImplementedError.new("Cards cannot be retrieved without a customer ID. Retrieve a card using customer.cards.retrieve('card_id')")
end

Public Instance Methods

url() click to toggle source
# File lib/payjp/card.rb, line 8
def url
  if respond_to?(:customer)
    "#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}"
  end
end