Sha256: 18afc07f81f02b6f5609eb348efc7cb1103e16e26509783dcea7035a585e19ed

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

Stored size: 421 Bytes

Contents

module Stripe
  class Card < APIResource
    include Stripe::APIOperations::Update
    include Stripe::APIOperations::Delete

    def url
      "#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}"
    end

    def self.retrieve(id, api_key=nil)
      raise NotImplementedError.new("Cards cannot be retrieved without a customer ID. Retrieve a card using customer.cards.retrieve('card_id')")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stripe-1.9.9 lib/stripe/card.rb
stripe-1.8.8 lib/stripe/card.rb
stripe-1.8.7 lib/stripe/card.rb
stripe-1.8.6 lib/stripe/card.rb
stripe-1.8.5 lib/stripe/card.rb
stripe-1.8.4 lib/stripe/card.rb