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]
international_phone[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 62
def self._new(*args)
  self.new(*args)
end
create(*args) click to toggle source
# File lib/braintree/address.rb, line 24
def self.create(*args)
  Configuration.gateway.address.create(*args)
end
create!(*args) click to toggle source
# File lib/braintree/address.rb, line 28
def self.create!(*args)
  Configuration.gateway.address.create!(*args)
end
delete(*args) click to toggle source
# File lib/braintree/address.rb, line 32
def self.delete(*args)
  Configuration.gateway.address.delete(*args)
end
find(*args) click to toggle source
# File lib/braintree/address.rb, line 36
def self.find(*args)
  Configuration.gateway.address.find(*args)
end
update(*args) click to toggle source
# File lib/braintree/address.rb, line 40
def self.update(*args)
  Configuration.gateway.address.update(*args)
end
update!(*args) click to toggle source
# File lib/braintree/address.rb, line 44
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 48
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 53
def ==(other)
  return false unless other.is_a?(Address)
  id == other.id && customer_id == other.customer_id
end