Class: Stripe::BitcoinReceiver
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::BitcoinReceiver
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/bitcoin_receiver.rb
Overview
Directly creating or retrieving BitcoinReceivers is deprecated. Please use the Sources API instead: stripe.com/docs/sources/bitcoin
Constant Summary collapse
- OBJECT_NAME =
"bitcoin_receiver".freeze
Instance Attribute Summary
Attributes inherited from APIResource
Class Method Summary collapse
Instance Method Summary collapse
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, retrieve, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #refresh_from, serialize_params, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Class Method Details
.resource_url ⇒ Object
11 12 13 |
# File 'lib/stripe/resources/bitcoin_receiver.rb', line 11 def self.resource_url "/v1/bitcoin/receivers" end |
Instance Method Details
#resource_url ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/stripe/resources/bitcoin_receiver.rb', line 15 def resource_url if respond_to?(:customer) && !customer.nil? && customer != "" "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}" else "#{self.class.resource_url}/#{CGI.escape(id)}" end end |