Object
# File lib/braintree/address.rb, line 10 def self.create(attributes) Configuration.gateway.address.create(attributes) end
# File lib/braintree/address.rb, line 14 def self.create!(attributes) return_object_or_raise(:address) { create(attributes) } end
# File lib/braintree/address.rb, line 18 def self.delete(customer_or_customer_id, address_id) Configuration.gateway.address.delete(customer_or_customer_id, address_id) end
# File lib/braintree/address.rb, line 22 def self.find(customer_or_customer_id, address_id) Configuration.gateway.address.find(customer_or_customer_id, address_id) end
Deprecated. Use Braintree::Address.delete
# File lib/braintree/address.rb, line 45 def delete warn "[DEPRECATED] delete as an instance method is deprecated. Please use Address.delete" @gateway.address.delete(customer_id, self.id) end
Deprecated. Use Braintree::Address.update
# File lib/braintree/address.rb, line 51 def update(attributes) warn "[DEPRECATED] update as an instance method is deprecated. Please use Address.update" result = @gateway.address.update(customer_id, id, attributes) if result.success? copy_instance_variables_from_object result.address end result end
Deprecated. Use Braintree::Address.update!
# File lib/braintree/address.rb, line 61 def update!(attributes) warn "[DEPRECATED] update! as an instance method is deprecated. Please use Address.update!" return_object_or_raise(:address) { update(attributes) } end
Generated with the Darkfish Rdoc Generator 2.