lib/stripe/card.rb in stripe-3.3.2 vs lib/stripe/card.rb in stripe-3.4.1

- old
+ new

@@ -2,11 +2,11 @@ class Card < APIResource include Stripe::APIOperations::Save include Stripe::APIOperations::Delete extend Stripe::APIOperations::List - OBJECT_NAME = 'card' + OBJECT_NAME = "card".freeze def resource_url if respond_to?(:recipient) && !recipient.nil? && !recipient.empty? "#{Recipient.resource_url}/#{CGI.escape(recipient)}/cards/#{CGI.escape(id)}" elsif respond_to?(:customer) && !customer.nil? && !customer.empty? @@ -14,14 +14,14 @@ elsif respond_to?(:account) && !account.nil? && !account.empty? "#{Account.resource_url}/#{CGI.escape(account)}/external_accounts/#{CGI.escape(id)}" end end - def self.update(id, params=nil, opts=nil) - raise NotImplementedError.new("Cards cannot be updated without a customer ID. Update a card using `c = customer.sources.retrieve('card_id'); c.save`") + def self.update(_id, _params = nil, _opts = nil) + raise NotImplementedError, "Cards cannot be updated without a customer ID. Update a card using `c = customer.sources.retrieve('card_id'); c.save`" end - def self.retrieve(id, opts=nil) - raise NotImplementedError.new("Cards cannot be retrieved without a customer ID. Retrieve a card using customer.sources.retrieve('card_id')") + def self.retrieve(_id, _opts = nil) + raise NotImplementedError, "Cards cannot be retrieved without a customer ID. Retrieve a card using customer.sources.retrieve('card_id')" end end end