lib/braintree/address.rb in braintree-4.15.0 vs lib/braintree/address.rb in braintree-4.16.0

- old
+ new

@@ -1,8 +1,8 @@ module Braintree class Address - include BaseModule # :nodoc: + include BaseModule attr_reader :company attr_reader :country_code_alpha2 attr_reader :country_code_alpha3 attr_reader :country_code_numeric @@ -42,24 +42,24 @@ def self.update!(*args) Configuration.gateway.address.update!(*args) end - def initialize(gateway, attributes) # :nodoc: + def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) end - def ==(other) # :nodoc: + def ==(other) return false unless other.is_a?(Address) id == other.id && customer_id == other.customer_id end class << self protected :new end - def self._new(*args) # :nodoc: + def self._new(*args) self.new(*args) end end end