Class: Insightly::Address

Inherits:
BaseData show all
Defined in:
lib/insightly/address.rb

Instance Method Summary collapse

Methods inherited from BaseData

#==, api_field, build, #build, #initialize, #remote_data, #to_json

Constructor Details

This class inherits a constructor from Insightly::BaseData

Instance Method Details

#same_address?(other) ⇒ Boolean



11
12
13
14
15
16
17
18
# File 'lib/insightly/address.rb', line 11

def same_address?(other)
  self.address_type == other.address_type &&
  self.street == other.street &&
      self.city == other.city &&
      self.state == other.state &&
      self.postcode == other.postcode &&
      self.country == other.country
end