class Braintree::Address
Constants
- CountryNames
Attributes
company[R]
country_code_alpha2[R]
country_code_alpha3[R]
country_code_numeric[R]
country_name[R]
created_at[R]
customer_id[R]
extended_address[R]
first_name[R]
id[R]
last_name[R]
locality[R]
phone_number[R]
postal_code[R]
region[R]
street_address[R]
updated_at[R]
Public Class Methods
_new(*args)
click to toggle source
# File lib/braintree/address.rb, line 61 def self._new(*args) self.new(*args) end
create(*args)
click to toggle source
# File lib/braintree/address.rb, line 23 def self.create(*args) Configuration.gateway.address.create(*args) end
create!(*args)
click to toggle source
# File lib/braintree/address.rb, line 27 def self.create!(*args) Configuration.gateway.address.create!(*args) end
delete(*args)
click to toggle source
# File lib/braintree/address.rb, line 31 def self.delete(*args) Configuration.gateway.address.delete(*args) end
find(*args)
click to toggle source
# File lib/braintree/address.rb, line 35 def self.find(*args) Configuration.gateway.address.find(*args) end
update(*args)
click to toggle source
# File lib/braintree/address.rb, line 39 def self.update(*args) Configuration.gateway.address.update(*args) end
update!(*args)
click to toggle source
# File lib/braintree/address.rb, line 43 def self.update!(*args) Configuration.gateway.address.update!(*args) end
Protected Class Methods
new(gateway, attributes)
click to toggle source
# File lib/braintree/address.rb, line 47 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) end
Public Instance Methods
==(other)
click to toggle source
# File lib/braintree/address.rb, line 52 def ==(other) return false unless other.is_a?(Address) id == other.id && customer_id == other.customer_id end